Bird
0
0

A canary deployment YAML has this snippet: replicas: 0. What issue will this cause?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Advanced Deployment Patterns
A canary deployment YAML has this snippet: replicas: 0. What issue will this cause?
AAll traffic will go to canary pods
BNo canary pods will be created, so no traffic goes to canary
CDeployment will fail to create pods
DCanary pods will run but be unready
Step-by-Step Solution
Solution:
  1. Step 1: Understand replicas: 0 meaning

    Setting replicas to zero means no pods are created for that deployment.
  2. Step 2: Effect on traffic

    No canary pods means no traffic can be routed to canary version.
  3. Final Answer:

    No canary pods will be created, so no traffic goes to canary -> Option B
  4. Quick Check:

    Zero replicas = no pods = no traffic [OK]
Quick Trick: Zero replicas means no pods run [OK]
Common Mistakes:
  • Thinking zero replicas causes failure
  • Assuming traffic auto-routes to canary
  • Confusing pod readiness with pod existence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes