Certified Kubernetes Administrator (CKA) · Section 2 · 15% of the exam
Configure workload autoscaling
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
This lesson covers the Horizontal Pod Autoscaler, the Vertical Pod Autoscaler and in-place Pod resizing, and then the building blocks that keep an application running by itself: ReplicaSets, restart policies, probes, graceful termination, PodDisruptionBudgets and sidecar containers.
Points to remember
- HPA changes replicas; VPA changes requests; cluster autoscaler changes nodes. Only HPA is built in.
- HPA needs Metrics Server and CPU/memory requests;
<unknown>targets point to one of them. - desired = ceil(current × currentMetric / targetMetric); default tolerance 10%; sync every 15 s; multiple metrics use the highest result.
- Default scale-down stabilization window is 300 s; scale-up has none.
- In-place Pod resize is stable since v1.35: patch the
resizesubresource; resizePolicy is NotRequired or RestartContainer.
Try a question
Which statement about the Vertical Pod Autoscaler is correct?
- AIt is built into kube-controller-manager just like the HPA is built in
- BIt changes the number of replicas of a Deployment from CPU load
- CIt adds worker nodes to the cluster when Pods are Pending for a while
- DA separate add-on that recommends or applies CPU and memory requests
Show the answer
D. The VPA adjusts resource requests. Its update modes include Off (recommend only), Initial, Recreate and Auto. It is not part of core Kubernetes.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Autoscaling and self-healing workloads teaches this objective (about 50 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.