Certified Kubernetes Administrator (CKA) · Section 2 · 15% of the exam
Understand application deployments and how to perform rolling update and rollbacks
One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Workloads and Scheduling”. Here is what it covers, the points to remember and a question to try.
What it covers
A Deployment declares the Pods you want and lets Kubernetes change them safely. This lesson covers how a Deployment, its ReplicaSets and the Pod template relate, how a rolling update is paced by maxSurge and maxUnavailable, and how to watch, pause, undo and troubleshoot a rollout with kubectl.
Points to remember
- A Deployment manages ReplicaSets; each Pod template version gets its own ReplicaSet.
- Only a
.spec.templatechange starts a rollout; scaling does not. - Defaults: RollingUpdate, maxSurge 25% (rounded up), maxUnavailable 25% (rounded down), revisionHistoryLimit 10, progressDeadlineSeconds 600.
- maxSurge and maxUnavailable cannot both be 0.
- Readiness probes decide when a new Pod counts as available, so they gate the rollout.
Try a question
To keep full capacity during updates on a cluster with no spare room, an engineer sets maxSurge: 0 and maxUnavailable: 0 on a Deployment. What happens when the manifest is applied?
- AThe Deployment is accepted and updates one Pod at a time without exceeding the replica count
- BThe Deployment is accepted and falls back to Recreate when an update starts
- CThe API server rejects the Deployment because the update could never make progress
- DThe values are replaced with the defaults of 25% each
Show the answer
C. A rolling update needs either surge room or permission to remove a Pod. With both at zero it cannot start, so validation fails. For tight capacity use maxSurge 0 with maxUnavailable 1.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Deployments, rolling updates and rollbacks teaches this objective (about 40 minutes), and 9 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.