问题原文
原帖链接 · Elouan Keryell-Even · CC BY-SA 4.0
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
已采纳解答
原帖链接 · Elouan Keryell-Even · CC BY-SA 4.0
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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
