Bird
0
0

Which annotation is commonly used in Kubernetes Ingress to split traffic by percentage for A/B testing?

easy📝 Syntax Q12 of 15
Kubernetes - Advanced Deployment Patterns
Which annotation is commonly used in Kubernetes Ingress to split traffic by percentage for A/B testing?
Anginx.ingress.kubernetes.io/canary-weight
Bnginx.ingress.kubernetes.io/rewrite-target
Cnginx.ingress.kubernetes.io/ssl-redirect
Dnginx.ingress.kubernetes.io/proxy-body-size
Step-by-Step Solution
Solution:
  1. Step 1: Identify annotations for traffic splitting

    The annotation 'nginx.ingress.kubernetes.io/canary-weight' is used to specify the percentage of traffic sent to the canary version.
  2. Step 2: Differentiate from other annotations

    Other annotations like rewrite-target or ssl-redirect serve different purposes unrelated to traffic splitting.
  3. Final Answer:

    nginx.ingress.kubernetes.io/canary-weight -> Option A
  4. Quick Check:

    Canary weight = traffic percentage [OK]
Quick Trick: Look for 'canary-weight' to split traffic by percent [OK]
Common Mistakes:
  • Using rewrite-target for traffic splitting
  • Confusing SSL redirect with traffic control
  • Ignoring canary annotations

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes