
Pods can have startup and runtime errors.
Startup errors include:
ImagePullBackoff
ImageInspectError
ErrImagePull
ErrImageNeverPull
RegistryUnavailable
InvalidImageName
Runtime errors include:
CrashLoopBackOff
RunContainerError
KillContainerError
VerifyNonRootError
RunInitContainerError
CreatePodSandboxError
ConfigPodSandboxError
KillPodSandboxError
SetupNetworkError
TeardownNetworkError
π°πππππ·ππππ©ππππΆππ
This error appears when #k8s isnβt able to retrieve the image for one of the #containers of the Pod.
There are three common culprits: The image name is invalid
You specified a non-existing tag for the image.
The image that youβre trying to retrieve belongs to a private registry and the cluster doesnβt have credentials to access it.
The first two cases can be solved by correcting the image name and tag.
For the last, one should add the credentials to your private registry in a Secret and reference it in the Pods
πΉπππͺπππππππππ¬ππππ
The error appears when the container is unable to start before application
Common causes: Mounting a not-existent volume such as ConfigMap or Secrets
Mounting a read-only volume as read-write
More detailed aspect can be found by describing the βfailedβ pod
πͺπππππ³ππππ©ππππΆππ
If the container canβt start, then #Kubernetes shows the CrashLoopBackOff message as a status.
Usually, a container canβt start when: Thereβs an error in the application that prevents it from starting.
You misconfigured the container.
The Liveness probe failed too many times.
π·ππ π ππ π π·πππ πππ πππππ
Assuming that the scheduler component is running fine, here are the causes:
The cluster doesnβt have enough resources such as CPU and memory to run the Pod.
The current Namespace has a ResourceQuota object and creating the Pod will make the Namespace go over the quota.
The Pod is bound to a Pending PersistentVolumeClaim.
The best option is to inspect the Events section in the βkubectl describeβ
Iβm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND