Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: nginx-ds
namespace: default
spec:
gateways:
- sample-gateway
hosts:
- "sample.hoge.com"
http:
- match:
- headers:
x-version:
exact: blue
route:
- destination:
host: nginx-svc.sample-ns.svc.cluster.local
subset: blue
port:
number: 40001
- match:
- uri:
prefix: /
route:
- destination:
host: nginx-svc.sample-ns.svc.cluster.local
subset: green
port:
number: 40001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment