github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/jwt-policy/spec/virtual-server-policy-multi-2.yaml (about)

     1  apiVersion: k8s.nginx.org/v1
     2  kind: VirtualServer
     3  metadata:
     4    name: virtual-server
     5  spec:
     6    host: virtual-server.example.com
     7    policies:
     8    - name: jwt-policy-valid
     9    - name: jwt-policy-valid-multi
    10    upstreams:
    11    - name: backend2
    12      service: backend2-svc
    13      port: 80
    14    - name: backend1
    15      service: backend1-svc
    16      port: 80
    17    routes:
    18    - path: "/backend1"
    19      action:
    20        pass: backend1
    21    - path: "/backend2"
    22      action:
    23        pass: backend2