Bird
0
0

What happens if an Istio DestinationRule defines subsets but the VirtualService routes to a subset not defined in DestinationRule?

medium📝 Command Output Q5 of 15
Kubernetes - Service Mesh
What happens if an Istio DestinationRule defines subsets but the VirtualService routes to a subset not defined in DestinationRule?
AVirtualService will override DestinationRule subsets
BTraffic to the undefined subset will fail with connection errors
CIstio ignores the subset and routes to all subsets evenly
DTraffic will automatically fallback to the default subset
Step-by-Step Solution
Solution:
  1. Step 1: Understand subset definitions

    DestinationRule defines valid subsets for a service. VirtualService must route only to these subsets.
  2. Step 2: Consequence of undefined subset routing

    If VirtualService routes to a subset not defined, Istio cannot find the destination, causing connection errors.
  3. Final Answer:

    Traffic to the undefined subset will fail with connection errors -> Option B
  4. Quick Check:

    Undefined subset = connection failure [OK]
Quick Trick: VirtualService subsets must match DestinationRule subsets [OK]
Common Mistakes:
  • Assuming automatic fallback to default subset
  • Thinking VirtualService can override subsets
  • Believing traffic splits evenly if subset missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes