Created
June 7, 2020 10:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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