Last active
May 20, 2019 14:00
-
-
Save masroorhasan/f1bc26ab854c81bd2555af4d9f28603b 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: v1 | |
weight: 70 | |
- destination: | |
host: resnet-serving.default.svc.cluster.local | |
port: | |
number: 9000 | |
subset: v2 | |
weight: 30 | |
--- | |
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