Certified Kubernetes Application Developer (CKAD) · Section 2 · 20% of the exam
Use Kubernetes primitives to implement common deployment strategies (e.g. blue/green or canary)
One of the objectives of the Certified Kubernetes Application Developer (CKAD) exam, in the section “Application Deployment”. Here is what it covers, the points to remember and a question to try.
What it covers
Kubernetes has no built-in 'blue/green' or 'canary' object. You build them from Deployments, labels and Services. This lesson shows how a Service selector decides which Pods get traffic, how to run a canary by replica ratio, how to switch blue/green by patching a selector, and when Recreate is the right choice.
Points to remember
- Kubernetes has only two built-in Deployment strategies: RollingUpdate (default) and Recreate. Blue/green and canary are patterns built from Deployments, labels and Services.
- A Service sends traffic to every ready Pod whose labels match its selector; it never references a Deployment.
- Blue/green uses two Deployments and a Service selector switch (kubectl patch service); rollback is switching back.
- Canary uses a shared label that the Service selects and a distinguishing label per Deployment; the traffic share follows the ratio of Pods.
- Recreate stops every old Pod before starting new ones: downtime, but no two versions overlap.
Try a question
A team wants exactly 10% of requests to go to version 2 while the stable version runs 3 replicas, without running dozens of Pods. Which approach fits, as of Kubernetes in November 2026?
- AAdd
traffic-percent: 10as a label on the canary Pods and let the Service read it - BA Gateway API HTTPRoute with backendRefs weighted 90 and 10
- CSet
maxSurge: 10%on the canary Deployment and keep the stable Deployment at 3 replicas - DRely on the ingress-nginx canary annotations for new designs
Show the answer
B. Pod-ratio canaries cannot give exact percentages with few Pods. Gateway API routes can weight each backend, and weights are a standard feature of HTTPRoute backendRefs.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Deployment Strategies: Recreate, Blue/Green and Canary teaches this objective (about 40 minutes), and 13 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.