Professional Documents
Culture Documents
~$ kubectl get pods ~$ kubectl describe pod <pod-name> ~$ kubectl get pods -o wide
RunContainerError? ?
Did the Is the name of Fix the image
contaner died ? NO the image
correct? ? NO name Is the Pod status
CrashLoopBackOff? YES
too quickly?
? NO
The issue is likely
YES YES
to be with
YES mounting volumes
~$ kubectl logs <pod-name> --previous Is the image tag
valid? Does it
exist? ? NO Fix the tag Did you inspect
Are the Pods
the logs and fix
the crashing ? NO Fix crashing app
READY? ? NO ~$ kubectl describe pod <pod-name> YES app?
YES
YES Are you pulling Configure pulling
Is the
Readiness ? YES Fix the Readiness
probe
images from a
private ? YES images from a
private registry Did you forget
probe failing? registry? the CMD ? YES Fix the Dockerfile
instruction in
NO NO the Dockerfile?
The issue could be NO
Unknown state with the CRI or Is the Pod
Kubelet restarting
frequently?
Cycling between ? YES Fix the liveness
probe
Running and
~$ kubectl port-forward <pod-name> 8080:<pod-port> Fix the app. It CrashLoopBackoff
should listen on ? NO
Is the port NO 0.0.0.0. Update the
Can you
access the ? NO
exposed by
container correct
and listening on ?
containerPort
Pods are
running
Unknown state
app?
YES
0.0.0.0?
YES
Unknown state correctly
Therunning
Ingress is ~$ kubectl port-forward service/<service-name> 8080:<service-port>