Skip to content

Instantly share code, notes, and snippets.

@mhiro2
Last active June 9, 2018 14:51
Show Gist options
  • Save mhiro2/88b26e6979aaadfe91f759ea7c25fd91 to your computer and use it in GitHub Desktop.
Save mhiro2/88b26e6979aaadfe91f759ea7c25fd91 to your computer and use it in GitHub Desktop.
$ istioctl get virtualservices -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: bookinfo
namespace: default
resourceVersion: "4309"
spec:
gateways:
- bookinfo-gateway
hosts:
- '*'
http:
- match:
- uri:
exact: /productpage
- uri:
exact: /login
- uri:
exact: /logout
- uri:
prefix: /api/v1/products
route:
- destination:
host: productpage
port:
number: 9080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment