Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created October 21, 2019 16:02
Show Gist options
  • Save askmeegs/4b6d618990d08672900260b9f228973a to your computer and use it in GitHub Desktop.
Save askmeegs/4b6d618990d08672900260b9f228973a to your computer and use it in GitHub Desktop.
invalid-canary.yaml
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: frontend
spec:
host: frontend
trafficPolicy:
tls:
mode: ISTIO_MUTUAL
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: frontend-split-traffic
spec:
hosts:
- frontend
http:
- route:
- destination:
host: frontend
subset: v1
weight: 0
- destination:
host: frontend
subset: v2
weight: 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment