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.Zon node one;kubeadm upgrade nodeelsewhere. - Drain before upgrading the kubelet:
kubectl drain NODE --ignore-daemonsets, thenuncordon. - kubelet may be up to three minors older than the API server; kubectl is within one minor.
etcdctl snapshot saveneeds endpoint, cacert, cert and key; restore withetcdutl 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?
- AOnly the scheduler is affected; the API server keeps accepting writes
- BRunning
kubeadm upgrade apply --forcere-elects a leader and restores quorum - CQuorum is lost; restore the failed members, or restore a snapshot to rebuild the cluster
- 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
- Manage role based access control (RBAC)
- Prepare underlying infrastructure for installing a Kubernetes cluster
- Create and manage Kubernetes clusters using kubeadm
- Implement and configure a highly-available control plane
- Use Helm and Kustomize to install cluster components
- Understand extension interfaces (CNI, CSI, CRI, etc.)
- Understand CRDs, install and configure operators