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