For some reason, while trying to create a deployment with a configmap 
mounted as a volume, I will _sometimes_ have a pod stuck in 
ContainerCreating and describing the pod gives an error like so:

  FirstSeen LastSeen Count From SubobjectPath Type Reason Message
  --------- -------- ----- ---- ------------- -------- ------ -------
  5m 5m 1 {default-scheduler } Normal Scheduled Successfully assigned 
core-deployment-263552865-m2fbm to 
gke-cluster-main-default-pool-e5792319-xs49
  3m 1m 2 {kubelet gke-cluster-main-default-pool-e5792319-xs49} Warning 
FailedMount Unable to mount volumes for pod 
"core-deployment-263552865-m2fbm_default(d9c50897-4e8b-11e6-92bf-42010af001cd)":
 
timeout expired waiting for volumes to attach/mount for pod 
"core-deployment-263552865-m2fbm"/"default". list of unattached/unmounted 
volumes=[core-config-files]
  3m 1m 2 {kubelet gke-cluster-main-default-pool-e5792319-xs49} Warning 
FailedSync Error syncing pod, skipping: timeout expired waiting for volumes 
to attach/mount for pod "core-deployment-263552865-m2fbm"/"default". list 
of unattached/unmounted volumes=[core-config-files]

Any thoughts would be appreciated, more details below.

Here's my yaml file:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: core-deployment
spec:
  replicas: 2
  template:
    metadata:
      name: core
      labels:
        app: core
    spec:
      containers:
        - name: core
          image: gcr.io/infrastructure-1373/hello-node:v3
          ports:
            - containerPort: 5000
          volumeMounts:
            - name: core-config-files-v
              mountPath: /etc/core-config
      volumes:
        - name: core-config-files-v
          configMap:
            name: core-config-files

and output of kubectl describe configmaps core-config-files:

Name: core-config-files
Namespace: default
Labels: <none>
Annotations:   
 
kubectl.kubernetes.io/last-applied-configuration={"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"core-config-files","creationTimestamp":null},"data":{...long...}

Data
====
saml.yml: 381 bytes
general.yml: 1109 bytes
saml-meta.xml: 4432 bytes

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to