Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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: 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 subset on label selector
subsets:
- name: v1
labels:
version: v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.