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?.
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