Interview › Istio & Service Mesh
What are subsets in a DestinationRule, and how are they used?
Istio & Service Mesh · Basic level
Answer
Subsets are named groups of endpoints for a service, usually selected by pod labels such as version: v1 or version: v2. They are defined in a DestinationRule and then referenced by VirtualService routes.
Technical explanation
Subsets let routing policy target logical versions without creating separate Kubernetes Services for every release.
Each subset can have its own traffic policy, such as load balancing, connection pools, or TLS settings.
The pod labels must match exactly, otherwise the subset has no endpoints and routing can fail with 503-style errors.
Hands-on example
Validate subset endpoints:
$ kubectl get pods -n app -l app=reviews --show-labels
$ istioctl proxy-config endpoints deploy/productpage -n app | grep reviewsIf subset v2 has no endpoints, fix deployment labels or DestinationRule subset labels before changing retry policy.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How do you implement a blue-green deployment using Istio?
- How does Istio do request routing based on headers or paths?
- What is fault injection in Istio, and why would you use it?
- How do you do weighted traffic splitting for a canary release in Istio?
- How do you inject delays or aborts to test resilience with Istio?
- What is the difference between an Istio ingress gateway and an egress gateway?
- What are timeouts in Istio, and how do they interact with retries?
- What is a Gateway resource, and how does it differ from a Kubernetes Ingress?