Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save fai555/a7276736fe566b0c5cc0e25f2abe7905 to your computer and use it in GitHub Desktop.

Select an option

Save fai555/a7276736fe566b0c5cc0e25f2abe7905 to your computer and use it in GitHub Desktop.
kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
namespace: foo
spec:
hosts:
- "*"
gateways:
- httpbin-gateway
http:
- route:
- destination:
port:
number: 8000
host: httpbin.foo.svc.cluster.local
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment