google container engine - Deploying service to GKE/Kubernetes leading to FailedSync error -
when deploying service kubernetes/gke kubectl describe pod
indicates following error (as occurring after image pulled):
{kubelet <id>} warning failedsync error syncing pod, skipping: failed "startcontainer" "<id>" crashloopbackoff: "back-off 20s restarting failed container=<id>" {kubelet <id>} spec.containers{id} warning backoff restarting failed docker container.
i have checked various log files (such /var/log/kubelet.log
, /var/log/docker.log
) on node pod executing did not find more specific?
what error message indicate, , how can further diagnose , solve problem?
the problem might in relation mounting pd. can both docker run
the image cloud shell (without pd) , mount pd after adding gce vm instance. apparently it's neither caused image nor pd in isolation.
the root cause apparently pd did not contain directory target of symbolic link required application running inside image. cause application terminate , effect image stop, apparently reported failed docker container
in shown log file.
after creating directory (by attatching drive separate vm instance , mounting there purpose) specific problem disappears (only followed this 1 :)
Comments
Post a Comment