Last active
May 20, 2019 14:00
-
-
Save masroorhasan/663a4f522a01c9680d8d9c857022f096 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: resnet-serving | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- resnet-serving-gateway | |
http: | |
- route: | |
- destination: | |
host: resnet-serving.default.svc.cluster.local | |
port: | |
number: 9000 | |
subset: v2 | |
weight: 100 | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: resnet-serving | |
spec: | |
host: resnet-serving.default.svc.cluster.local | |
trafficPolicy: | |
loadBalancer: | |
simple: ROUND_ROBIN | |
# define subsets on label selectors | |
subsets: | |
- name: v1 | |
labels: | |
version: v1 | |
- name: v2 | |
labels: | |
version: v2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment