Skip to content

Instantly share code, notes, and snippets.

@giang-pham
Created September 2, 2019 04:03
Show Gist options
  • Save giang-pham/4ac2c4aeaddeabe481780e0c32e38287 to your computer and use it in GitHub Desktop.
Save giang-pham/4ac2c4aeaddeabe481780e0c32e38287 to your computer and use it in GitHub Desktop.
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: 0
- destination:
host: [APP_SERVICE].[NAMESPACE].svc.cluster.local
subset: green
port:
number: 80
weight: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment