Bird
0
0

During a blue-green deployment, you want to test the green environment with real traffic from a subset of users. What Kubernetes feature can help achieve this?

hard📝 Workflow Q9 of 15
Kubernetes - Advanced Deployment Patterns
During a blue-green deployment, you want to test the green environment with real traffic from a subset of users. What Kubernetes feature can help achieve this?
AUsing multiple Services with different selectors and updating Ingress rules
BScaling down blue pods to zero immediately
CDeleting the blue deployment before testing green
DApplying a NetworkPolicy to block green pods
Step-by-Step Solution
Solution:
  1. Step 1: Understand partial traffic routing

    Multiple Services with different selectors can route traffic to blue or green pods separately.
  2. Step 2: Use Ingress rules to split traffic

    Ingress can direct a subset of user traffic to green Service for testing without affecting blue.
  3. Final Answer:

    Using multiple Services with different selectors and updating Ingress rules -> Option A
  4. Quick Check:

    Partial traffic test = Multiple Services + Ingress [OK]
Quick Trick: Split traffic using Services and Ingress rules [OK]
Common Mistakes:
  • Deleting blue pods before testing green
  • Blocking green pods with NetworkPolicy

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes