Bird
0
0

You wrote this VirtualService snippet but traffic is not splitting as expected:

medium📝 Troubleshoot Q14 of 15
Kubernetes - Service Mesh
You wrote this VirtualService snippet but traffic is not splitting as expected:
route:
- destination:
    host: productpage
    subset: v1
  weight: 50
- destination:
    host: productpage
    subset: v2
  weight: 60
What is the error?
ASubset names must be uppercase
BMissing 'http:' key before 'route'
CHost name should be the service IP, not name
DWeights sum to more than 100, causing misrouting
Step-by-Step Solution
Solution:
  1. Step 1: Check weights sum

    Weights are 50 and 60, totaling 110%, which is invalid.
  2. Step 2: Understand traffic split rules

    Weights must sum to 100 or less to properly split traffic.
  3. Final Answer:

    Weights sum to more than 100, causing misrouting -> Option D
  4. Quick Check:

    Weights > 100 cause errors [OK]
Quick Trick: Sum weights to 100 or less for valid splits [OK]
Common Mistakes:
  • Ignoring total weight sum
  • Forgetting 'http:' key is optional but recommended
  • Thinking subset names are case sensitive

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes