我想在Pumba
集群上尝试Openshift
Yaml file。我的广告连播正在给CrashLoopBackOff
。
检查日志后,我发现错误是这样的
container_linux.go:247: starting container process caused "exec: \"pumba\": executable file not found in $PATH"
。
是否有人遇到这样的错误?
答案 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