Interview › Istio & Service Mesh
How do you roll back a bad VirtualService change quickly?
Istio & Service Mesh · Advanced level
Answer
To roll back a bad VirtualService quickly, I keep mesh config in Git, apply changes through CI/CD, and revert to the last known-good manifest. Operationally, the fastest rollback is usually setting weights back to the stable subset or reapplying the previous VirtualService revision.
Technical explanation
Bad VirtualService changes can cause no-route errors, wrong host matches, canary overload, or broken gateway routes.
A rollback should be a small config change, not a redeploy of every service.
I validate rollback by checking proxy routes and live error-rate recovery.
Hands-on example
Rollback commands:
$ git revert <bad-commit>
$ kubectl apply -f virtualservice.yamlFast emergency patch:
$ kubectl patch virtualservice checkout -n app --type merge -p '<known-good-json>'Validate:
$ istioctl proxy-config route deploy/ingressgateway -n istio-system | grep checkout
$ kubectl logs deploy/ingressgateway -c istio-proxy -n istio-system --tail=100Check 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 test an AuthorizationPolicy before enforcing it (dry-run)?
- How do you observe and reduce the error rate of a specific service via the mesh?
- How do you handle gradual migration of services into mTLS STRICT mode?
- What is the difference between L4 and L7 policy enforcement in the mesh?
- How does Istio interact with NetworkPolicies — do you need both?
- How do you ensure the sidecar is ready before the app starts taking traffic?
- How do you integrate an external authorization service with Istio?
- How do you drain connections gracefully during a rolling update with Istio?