CertLumen

Certified Kubernetes Administrator (CKA) · Section 1 · 25% of the exam

Manage the lifecycle of Kubernetes clusters

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

What it covers

Running a cluster means upgrading it safely, backing up and restoring etcd, renewing certificates, draining nodes and adding or removing them. High availability adds a load-balanced endpoint, several control-plane nodes and an etcd cluster with quorum. This lesson walks through each procedure and the rules the exam tests.

Points to remember

  • Upgrade one minor at a time; the control plane first, kubelets after, never newer than the API server.
  • Order: kubeadm package, kubeadm upgrade plan, kubeadm upgrade apply vX.Y.Z on node one; kubeadm upgrade node elsewhere.
  • Drain before upgrading the kubelet: kubectl drain NODE --ignore-daemonsets, then uncordon.
  • kubelet may be up to three minors older than the API server; kubectl is within one minor.
  • etcdctl snapshot save needs endpoint, cacert, cert and key; restore with etcdutl snapshot restore --data-dir.

Try a question

A three-node stacked-etcd cluster loses two control-plane machines to a power failure. The remaining node's API server logs show etcd timeouts, and writes fail. Which statement describes the situation and the recovery?

  1. AOnly the scheduler is affected; the API server keeps accepting writes
  2. BRunning kubeadm upgrade apply --force re-elects a leader and restores quorum
  3. CQuorum is lost; restore the failed members, or restore a snapshot to rebuild the cluster
  4. DThe remaining node automatically becomes the sole member and continues to accept writes after a short election
Show the answer

C. A three-member etcd cluster needs two members for quorum. With one remaining, the API server can no longer store changes. Recovery: restore the failed nodes, or restore a snapshot (for example with etcdutl snapshot restore) and rebuild membership.

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

In the course

The lesson Cluster lifecycle and high availability teaches this objective (about 55 minutes), and 15 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 →