Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A canary deployment virtualservice spec, to specify weights of 90 and 10% for primary and canary respectively
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: foo
namespace: default
spec:
gateways:
- default-gateway
- mesh
hosts:
- foo.example.com
http:
- route:
- destination:
host: foo.default.svc.cluster.local
port:
number: 80
subset: foo-1
weight: 90
- destination:
host: foo.default.svc.cluster.local
port:
number: 80
subset: foo-2
weight: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment