Bird
0
0

Which annotation is correctly used to specify the percentage of traffic for a canary service in an NGINX Ingress?

easy📝 Configuration Q3 of 15
Kubernetes - Advanced Deployment Patterns
Which annotation is correctly used to specify the percentage of traffic for a canary service in an NGINX Ingress?
Anginx.ingress.kubernetes.io/canary: "false"
Bnginx.ingress.kubernetes.io/canary-weight: "30"
Cnginx.ingress.kubernetes.io/ssl-redirect: "30"
Dnginx.ingress.kubernetes.io/rewrite-target: "/30"
Step-by-Step Solution
Solution:
  1. Step 1: Identify annotation for canary traffic weight

    The annotation 'nginx.ingress.kubernetes.io/canary-weight' sets traffic percentage for canary.
  2. Step 2: Confirm correct syntax and value type

    The value must be a string number like "30" to indicate 30% traffic.
  3. Final Answer:

    nginx.ingress.kubernetes.io/canary-weight: "30" -> Option B
  4. Quick Check:

    Canary traffic percentage annotation = canary-weight [OK]
Quick Trick: Use canary-weight annotation to set traffic percent [OK]
Common Mistakes:
  • Using canary: false disables canary, not sets weight
  • Confusing ssl-redirect with traffic weight
  • Misusing rewrite-target for traffic splitting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes