github.com/nginxinc/kubernetes-ingress@v1.12.5/examples-of-custom-resources/traffic-splitting/cafe-virtual-server.yaml (about)

     1  apiVersion: k8s.nginx.org/v1
     2  kind: VirtualServer
     3  metadata:
     4    name: cafe
     5  spec:
     6    host: cafe.example.com
     7    upstreams:
     8    - name: coffee-v1
     9      service: coffee-v1-svc
    10      port: 80
    11    - name: coffee-v2 
    12      service: coffee-v2-svc
    13      port: 80
    14    routes:
    15    - path: /coffee
    16      splits:
    17      - weight: 90
    18        action:
    19          pass: coffee-v1
    20      - weight: 10
    21        action:
    22          pass: coffee-v2