Route Istio traffic with a VirtualService and protocol-specific match rules
Answer: A VirtualService is configuration that affects traffic routing. Each routing rule defines matching criteria for traffic of a specific protocol. Common uses include A/B testing and canary rollouts.
Routing terms
The reference page defines terms used in traffic routing, including hosts, subsets, and versions of a service. Those variants are not necessarily different API versions. A service often has a default version that includes all of its instances.
| hosts | destination | |---|---| | hosts | the destination service names | | http / tcp / tls | protocol-specific route lists | | match | criteria for a specific protocol | | destination | host, subset, and port to send to |
Rules in the proto
See also
Claims
- id: C1 claim: A VirtualService is configuration that affects traffic routing. source: S1 evidence: "Configuration affecting traffic routing."
- id: C2 claim: Typical uses include A/B testing and canary rollouts. source: S1 evidence: "Common scenarios where this occurs include A/B testing, canary rollouts, etc."
- id: C3 claim: Each routing rule defines match criteria for one protocol. source: S2 evidence: "The hosts field applies to both HTTP and TCP services."
Sources
- [S1] Virtual Service. Istio. https://istio.io/latest/docs/reference/config/networking/virtual-service/ . License: Apache-2.0. Accessed 2026-11-20.
- [S2] virtual_service.proto. istio/api. https://raw.githubusercontent.com/istio/api/master/networking/v1alpha3/virtual_service.proto . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Istio, Virtual Service; istio/api, virtual_service.proto. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Istio, Virtual Service; istio/api, virtual_service.proto. Apache-2.0; Apache-2.0.
Cite this
iinventedlight. 2026. "Route Istio traffic with a VirtualService and protocol-specific match rules." iinventedlight Library, iil:note:0fy7edhz, version of 2026-11-20. https://iinventedlight.com/library/notes/istio-virtual-service/. License: CC-BY-4.0.
@misc{iil_note_0fy7edhz,
author = {{iinventedlight}},
title = {{Route Istio traffic with a VirtualService and protocol-specific match rules}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/istio-virtual-service/},
note = {Permanent ID iil:note:0fy7edhz. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- istio-virtual-service.table.json (table; CC-BY-4.0)
- istio-virtual-service.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/istio-virtual-service.md.