CertLumen

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

Troubleshoot clusters and nodes

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

A method for diagnosing a sick cluster from the outside in: check the nodes, read their conditions, then follow the kubelet and the container runtime on the node itself. This lesson covers NotReady nodes, kubelet and containerd failures, swap and cgroup problems, pressure conditions, evictions, cordon and drain, and failed kubeadm joins.

Points to remember

  • Work outside in: get nodes, describe node, then SSH and read systemctl status and journalctl -u kubelet.
  • Ready=Unknown means no heartbeat; Ready=False means the kubelet reports a fault in the condition message.
  • The kubelet is a systemd service: config in /var/lib/kubelet/config.yaml, flags in kubeadm-flags.env, kubeconfig in /etc/kubernetes/kubelet.conf.
  • Swap on, a cgroup driver mismatch, a stopped containerd, a missing CNI and a wrong server address are the usual NotReady causes.
  • Default hard eviction: memory.available<100Mi, nodefs.available<10%, imagefs.available<15%; pressure conditions add taints.

Try a question

Pods from a Deployment are Terminating for a long time after kubectl drain worker-1, and the drain command hangs. The Deployment has 3 replicas and a PodDisruptionBudget with minAvailable: 3. What is happening and how do you proceed?

  1. AThe kubelet on the node is stopped; restart it so that the Pods are deleted and the drain can finish
  2. BThe Pods lack tolerations for the unschedulable taint, so they cannot be evicted until you add them
  3. CDrain requires the --force flag for Deployment Pods
  4. DThe PDB allows no voluntary disruption, so eviction is refused; relax the PDB or scale the Deployment up first
Show the answer

D. Drain uses the Eviction API, which honours PodDisruptionBudgets. An over-strict PDB blocks it indefinitely. Increase replicas, lower minAvailable, or fix the PDB, then retry.

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

In the course

The lesson Troubleshooting Clusters and Nodes teaches this objective (about 45 minutes), and 19 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 →