Last active
September 2, 2019 04:02
-
-
Save giang-pham/1805c7aa2eae3f815a0c37e78c124e8c to your computer and use it in GitHub Desktop.
This file contains 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: [APP_VS] | |
namespace: [APP] | |
spec: | |
gateways: | |
- default/default-gateway | |
hosts: | |
- [HOST] | |
http: | |
- match: | |
- uri: | |
prefix: / | |
route: | |
- destination: | |
host: [APP_SERVICE].[NAMESPACE].svc.cluster.local | |
subset: blue | |
port: | |
number: 80 | |
weight: 100 | |
- destination: | |
host: [APP_SERVICE].[NAMESPACE].svc.cluster.local | |
subset: green | |
port: | |
number: 80 | |
weight: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment