无法在Openshift上运行Pumba

时间:2019-06-28 07:46:52

标签: kubernetes openshift openshift-origin

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

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

1 个答案:

答案 0 :(得分:0)

该图像不包含任何外壳程序作为执行pumba命令的入口点。

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

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: pumba
spec:
  template:
    metadata:
      labels:
        app: pumba
      name: pumba
    spec:
      containers:
      - image: gaiaadm/pumba:master
        imagePullPolicy: Always
        name: pumba
        args:
          - pumba
          - --debug
          - --random
          - --interval
          - "30s"
          - kill
          - --signal
          - "SIGKILL"
        securityContext:
          runAsUser: 0
        volumeMounts:
          - name: dockersocket
            mountPath: /var/run/docker.sock
      volumes:
        - hostPath:
            path: /var/run/docker.sock
          name: dockersocket