github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/jwt-policy/route-subroute/virtual-server-route-override-subroute.yaml (about) 1 apiVersion: k8s.nginx.org/v1 2 kind: VirtualServerRoute 3 metadata: 4 name: backends 5 spec: 6 host: virtual-server-route.example.com 7 upstreams: 8 - name: backend1 9 service: backend1-svc 10 port: 80 11 - name: backend3 12 service: backend3-svc 13 port: 80 14 subroutes: 15 - path: "/backends/backend1" 16 policies: 17 - name: jwt-policy-valid-multi 18 - name: jwt-policy-valid 19 action: 20 pass: backend1 21 - path: "/backends/backend3" 22 action: 23 pass: backend3