Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment failed on Kubernetes 1.7 #42

Closed
haithkris opened this issue Aug 21, 2017 · 3 comments
Closed

Deployment failed on Kubernetes 1.7 #42

haithkris opened this issue Aug 21, 2017 · 3 comments

Comments

@haithkris
Copy link

haithkris commented Aug 21, 2017

When I try to deploy on Kubernetes, I got this kind of error: Error response from daemon: {"message":"invalid header field value \"oci runtime error: container_linux.go:247: starting container process caused \\\"exec: \\\\\\\"pumba --interval 10s kill --signal SIGTERM containerName\\\\\\\": executable file not found in $PATH\\\"\\n\""}

Here's my deployment yaml file:

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: pumba
spec:
  template:
    metadata:
      labels:
        app: pumba
      name: pumba
    spec:
      containers: 
      - image: gaiaadm/pumba
        imagePullPolicy: Always
        name: pumba
        volumeMounts:
          - name: dockersocket
            mountPath: /var/run/docker.sock
        command:
          - "pumba --interval 10s kill --signal SIGTERM containerName"
      volumes:
        - hostPath:
            path: /var/run/docker.sock
          name: dockersocket
@valtsi
Copy link

valtsi commented Aug 24, 2017

You might want to try and change the command in the yaml to an args list, like in this example. I had the same exact issue, and this change seemed to fix it. Unfortunately, I couldn't tell you why exactly this works and the command doesn't.

@yaron-idan
Copy link
Contributor

Is there any objection to actually change deploy/pumba_kube.yml to use the solution suggested in the comment @valtsi suggested?

@alexei-led
Copy link
Owner

@yaron-idan you can submit PR with fix, if you like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants