Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasdikrahman/b30416bc8b6e521f016cd1209b5f5d43 to your computer and use it in GitHub Desktop.
Save tasdikrahman/b30416bc8b6e521f016cd1209b5f5d43 to your computer and use it in GitHub Desktop.
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