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

Can't mount secret volumes #16586

Closed
2opremio opened this Issue Oct 30, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@2opremio
Contributor

2opremio commented Oct 30, 2015

When I try to create a pod which mounts secret volumes I get a Unable to mount volumes for pod: exit status 1 error. For instance, when trying to create the example pod from https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/secrets :

$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret.yaml | kubectl create -f -
secrets/test-secret
$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret-pod.yaml | kubectl create -f -
pods/secret-test-pod
$ kubectl describe pod secret-test-pod
[...]
Events:
  FirstSeen             LastSeen            Count   From            SubobjectPath   Reason      Message
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 10:56:30 +0000 1   {scheduler }                scheduled   Successfully assigned secret-test-pod to 127.0.0.1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedMount Unable to mount volumes for pod "secret-test-pod_default": exit status 1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedSync  Error syncing pod, skipping: exit status 1
$ kubectl get secrets
NAME                  TYPE                                  DATA
default-token-vjaxy   kubernetes.io/service-account-token   2
test-secret           Opaque                                2

This is a single node containerized k8s cluster for local development (based on https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md ).

Here is how I specifically create the cluster and the definition of the master pod: https://gist.github.com/2opremio/12eafc0c2485d8d13f2a

I am running Docker version 1.8.2, build 0a8c2e3

Related to #16055 (I get a different error, though) and #8734 (but I do provide the --contenerized flag see https://gist.github.com/2opremio/12eafc0c2485d8d13f2a#file-create_cluster-sh-L27 ) and and somehow similar to openshift/origin#3072

@2opremio

This comment has been minimized.

Show comment
Hide comment
@2opremio

2opremio Oct 30, 2015

Contributor

When running kubelet v1.0.7 I get the same error as in #16055 Unable to mount volumes for pod "secret-test-pod_default": exec: "nsenter": executable file not found in $PATH

Closing, since it seems to be a duplicate.

Contributor

2opremio commented Oct 30, 2015

When running kubelet v1.0.7 I get the same error as in #16055 Unable to mount volumes for pod "secret-test-pod_default": exec: "nsenter": executable file not found in $PATH

Closing, since it seems to be a duplicate.

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