我想在Pumba集群上尝试Openshift Yaml file。我的pod正在给CrashLoopBackOff
检查日志后,我发现错误是这样的container_linux.go:247: starting container process caused "exec: \"pumba\": executable file not found in $PATH"

是否有人遇到这样的错误?

最佳答案

该图像不包含任何 shell 作为执行pumba命令的切入点。

因此,您需要做的是如下更改yaml:

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: pumba
spec:
  template:
    metadata:
      labels:
        name: pumba
    spec:
      containers:
      - image: orangesys/alpine-pumba:0.2.4
        name: pumba
        args:
          - pumba
          - --debug
          - --random
          - --interval
          - "30s"
          - kill
          - --signal
          - "SIGKILL"
        volumeMounts:
          - name: dockersocket
            mountPath: /var/run/docker.sock
      volumes:
        - hostPath:
            path: /var/run/docker.sock
          name: dockersocket

按预期工作
AME          READY   STATUS    RESTARTS   AGE
pumba-qdqx6   1/1     Running   0          38s

关于kubernetes - 无法在Openshift上运行Pumba,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56802899/

10-09 05:27