github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/virtual-server-route-canned-responses/route-multiple-updated.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 subroutes: 8 - path: "/backends/canned-response" 9 action: 10 return: 11 code: 501 12 type: "some/type" 13 body: '{}' 14 - path: "/backends/canned-defaults" 15 action: 16 return: 17 code: 201 18 type: "user-type" 19 body: "line1\\nline2"