Skip to content

Instantly share code, notes, and snippets.

@voraviz
Last active January 24, 2021 06:58
Show Gist options
  • Save voraviz/e9027d6d43dc0ed3482d65874d4cbec0 to your computer and use it in GitHub Desktop.
Save voraviz/e9027d6d43dc0ed3482d65874d4cbec0 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: frontend-virtual-service
spec:
hosts:
- frontend.apps.SUBDOMAIN
gateways:
- control-plane/wildcard-gateway
http:
- match:
- headers:
user-agent:
regex: (.*)Firefox(.*)
route:
- destination:
host: frontend
port:
number: 8080
subset: v2
- route:
- destination:
host: frontend
port:
number: 8080
subset: v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment