Created
October 18, 2018 09:20
-
-
Save janakiramm/35078d95730745caa62f81d917d6d553 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: Gateway | |
metadata: | |
name: app-gateway | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: | |
number: 80 | |
name: http | |
protocol: HTTP | |
hosts: | |
- "*" | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: myapp | |
spec: | |
host: myapp | |
subsets: | |
- name: v1 | |
labels: | |
version: v1 | |
- name: v2 | |
labels: | |
version: v2 | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: myapp | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- app-gateway | |
http: | |
- route: | |
- destination: | |
host: myapp | |
subset: v1 | |
weight: 0 | |
- destination: | |
host: myapp | |
subset: v2 | |
weight: 100 | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment