istio.io/test/command_example.txt

23 lines
353 B
Plaintext

$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "*"
gateways:
- httpbin-gateway
http:
- match:
- uri:
prefix: /headers
- uri:
prefix: /status
route:
- destination:
port:
number: 8000
host: httpbin
EOF