Cannot run Pumba on Openshift

6/28/2019

I want to try Pumba Yaml file on my Openshift Cluster.My pod is giving CrashLoopBackOff. After checking the logs I found the error to be this container_linux.go:247: starting container process caused "exec: \"pumba\": executable file not found in $PATH".

If anyone evere faced any error like this?.

-- Rajat Singh
kubernetes
openshift
openshift-origin

1 Answer

7/1/2019

The image doesn’t contain any shell as an entry-point to execute pumba command.

So, what you need to do is to change yaml as follows:

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           

Works as expected

AME          READY   STATUS    RESTARTS   AGE
pumba-qdqx6   1/1     Running   0          38s
-- A_Suh
Source: StackOverflow