# istio_reroute-virtual-interfaces.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello
spec:
  replicas: 7
  selector:
    matchLabels:
      app: hello  
      tier: backend
      track: stable
  template:
    metadata:
      annotations:
        istio.io/reroute-virtual-interfaces: "net0ps2"
        traffic.sidecar.istio.io/kubevirtInterfaces: "net1"
      labels:
        app: hello
        tier: backend
        track: stable
    spec:
      containers:
        - name: hello
          image: "fake.docker.io/google-samples/hello-go-gke:1.0"
          ports:
            - name: http
              containerPort: 80