Score:2

Pod fails to mount ConfigMap: `failed to sync configmap cache: timed out waiting for the condition`

it flag

I am trying to deploy a pod on a v1.18 GKE kubernetes cluster

My pod loop-crashes because it fails to mount its config map:

$ kubectl describe pod <pod>

...

Volumes:
  cm-cxf-conf:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      project-cm-cxf-conf
    Optional:  false

...

Events:
  Type     Reason                  Age                    From                     Message
  ----     ------                  ----                   ----                     -------
  Warning  FailedMount             41m                    kubelet                  MountVolume.SetUp failed for volume "cm-cxf-conf" : failed to sync configmap cache: timed out waiting for the condition

...

However, the config map DOES exist:

$ kubectl get configmap project-cm-cxf-conf
project-cm-cxf-conf            1      4h40m

What could be the cause of this error? How can I fix it?

Related threads

Mikołaj Głodziak avatar
id flag
Please attach your yaml files. Did you know, you are using deprecated version of kubernetes?
Wytrzymały Wiktor avatar
it flag
Hello @ElouanKeryell-Even. Any updates?
Score:4
it flag

Actually, the FailedMount are just warnings without consequences. When checking kubelet logs, there were other logs afterwards stating it finally succeeded mounting the Config Maps, after retrying.

The real reason why my pod was loop-crashing was a Java application-side error (a JAR was missing in the container), in the end nothing to do with kubernetes

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.