CertLumen

Certified Kubernetes Administrator (CKA) · Section 2 · 15% of the exam

Understand the primitives used to create robust, self-healing, application deployments

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 resize subresource; resizePolicy is NotRequired or RestartContainer.

Try a question

A Pod on a v1.37 cluster needs more CPU without restarting. Its container has resizePolicy NotRequired for CPU. Which action applies the change in place?

  1. Akubectl patch pod web-0 --subresource resize with the new CPU values
  2. Bkubectl edit pod web-0 and change the resources of the container in spec
  3. Ckubectl set resources deployment web, then wait for the Pod to be updated
  4. Dkubectl replace --force -f web-0.yaml with the new values in the manifest
Show the answer

A. In-place Pod resize is stable since v1.35. You patch, apply or edit through --subresource resize. The Pod conditions PodResizePending and PodResizeInProgress report what the kubelet does.

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.

More in this section

← Previous objective · All 27 objectives · Next objective →