Bird
0
0

If an Ingress resource has the annotation 'nginx.ingress.kubernetes.io/canary: "true"' but no canary-weight set, what happens to the traffic?

medium📝 Command Output Q5 of 15
Kubernetes - Advanced Deployment Patterns
If an Ingress resource has the annotation 'nginx.ingress.kubernetes.io/canary: "true"' but no canary-weight set, what happens to the traffic?
ATraffic is split 50/50 between primary and canary
BAll traffic goes to the canary service
CNo traffic goes to the canary service
DIngress throws a configuration error
Step-by-Step Solution
Solution:
  1. Step 1: Understand canary annotation without weight

    Setting canary: "true" without weight routes all traffic to canary.
  2. Step 2: Confirm behavior of missing canary-weight

    Without weight, canary is treated as 100% traffic target.
  3. Final Answer:

    All traffic goes to the canary service -> Option B
  4. Quick Check:

    canary true without weight = 100% traffic to canary [OK]
Quick Trick: canary: true alone sends all traffic to canary [OK]
Common Mistakes:
  • Assuming default 50/50 split without weight
  • Expecting no traffic to canary without weight
  • Thinking Ingress errors on missing weight

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes