Lesson in CKA Mock Exam
Question 3: Scale Down a StatefulSet
Scale a two-replica StatefulSet down to one replica in a specific namespace.
There are two Pods named o3db-* in Namespace project-h800. The Project H800 management asked you to scale these down to one replica to save resources.
Hint 1
The Pod naming pattern (o3db-0, o3db-1, stable numeric suffixes) is a strong clue about which controller owns them — it's not the same controller a plain Deployment uses. Check -o wide / labels, or look at what controller kinds exist in that namespace, if you want to confirm before acting.
Hint 2
Whatever the controller turns out to be, there's a single kubectl verb that changes a controller's desired replica count directly — you don't need to edit or re-apply any YAML.
- Previous lesson
- Question 2: Kubeconfig Extraction
- Next lesson
- Question 4: Inspect a Container with crictl