github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/access-control/route-subroute/virtual-server-allow-route.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 upstreams: 8 - name: backend2 9 service: backend2-svc 10 port: 80 11 - name: backend1 12 service: backend1-svc 13 port: 80 14 routes: 15 - path: "/backend1" 16 policies: 17 - name: allow-policy 18 action: 19 pass: backend1 20 - path: "/backend2" 21 action: 22 pass: backend2