โ† Kubernetes Administrator (CKA) Exam Practice learning path
Kubernetes Administrator (CKA) Exam Practice ยท Module 9 of 10

Troubleshooting

Finding and fixing problems.

๐Ÿ“– Key ideas

  1. Start with kubectl get and describe; read events.
  2. Pod states: Pending (scheduling or storage), CrashLoopBackOff (app keeps crashing), ImagePullBackOff (image problem).
  3. kubectl logs (with --previous) shows crash output.
  4. Node issues: check kubelet with systemctl status kubelet and journalctl -u kubelet.
  5. Networking: verify services, endpoints, DNS (nslookup from a test pod) and NetworkPolicies.
๐Ÿ’ก Real-life example: Like a doctor: check symptoms (status), history (events, logs) and then test causes one by one.
CrashLoopBackOffContainer repeatedly crashing and restarting
ImagePullBackOffImage cannot be pulled
EventsRecords of cluster actions and errors
journalctlCommand to read systemd logs