Apply a Virtual Service to a Selected Sidecar

#1

Hi all,

Is it possible to apply a Virtual Service to selected set of sidecars? I understand that specifying ‘mesh’ for gateways section makes it applicable to all sidecars in the mesh, and have tried that. Am trying to assign different Virtual Services to different sidecars.

I’m using Istio 1.0.2. If not supported in this version, is it supported in latest?

#2

Hi all,

Any input on this? I’m not sure if applying VirtualServices selectively for sidecars is not a valid usecase or if it violates some base assumptions in Istio networking. Would be great to have a proper explanation if so.

#3

sourceLabels are used to apply rules to specific workloads/sidecars with the mesh.

#4

You can also use a Sidecar config to exclude virtual services from a sidecar.