CertLumen

Certified Kubernetes Administrator (CKA) · Section 5 · 30% of the exam

Troubleshoot cluster components

One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Troubleshooting”. Here is what it covers, the points to remember and a question to try.

What it covers

On a kubeadm cluster the API server, scheduler, controller manager and etcd are static Pods that the kubelet starts from manifest files. This lesson shows how to tell which component is broken from the symptoms, how to debug when kubectl itself is down, and how to fix manifests, certificates, kubeconfigs, etcd health, kube-proxy and CoreDNS.

Points to remember

  • kubeadm runs apiserver, scheduler, controller-manager and etcd as static Pods from /etc/kubernetes/manifests.
  • Change a static Pod by editing its manifest file; deleting the mirror Pod changes nothing.
  • Refused connection on 6443: check the apiserver container with crictl ps -a and crictl logs, then the manifest and etcd.
  • Pending with no events means the scheduler is down; a Deployment that creates nothing means the controller manager is down.
  • Logs remain in /var/log/pods and /var/log/containers when kubectl logs is unavailable.

Try a question

The coredns Pods are in CrashLoopBackOff. Their log contains [FATAL] plugin/loop: Loop (127.0.0.1:... -> :53) detected. What does this indicate?

  1. AThe Service CIDR is full, so CoreDNS cannot be assigned a ClusterIP and crashes during its startup
  2. BThe kube-proxy ConfigMap has the wrong clusterCIDR, so queries from CoreDNS are masqueraded incorrectly
  3. CThe Pods do not have a readiness probe, so Kubernetes restarts them as soon as they receive any query
  4. DThe upstream resolver from the node's resolv.conf points back at CoreDNS, forming a loop
Show the answer

D. Point forward in the Corefile at a real upstream (or fix the kubelet's resolvConf), then restart the CoreDNS Deployment.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Troubleshooting Control-Plane Components teaches this objective (about 50 minutes), and 17 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 27 objectives · Next objective →