Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save fai555/13a48df09cf80c9a588c3d7a08d063f1 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: <VIRTUAL_SERVICE_NAME>
spec:
hosts:
- "*"
gateways:
- <GATEWAY_NAME>
http:
- match:
- uri:
prefix: /<PATH_TO_THE_SERVICE> # Don't forget the preceding slash(/)
route:
- destination:
host: <NAME_OF_THE_KUBERNETES_NATIVE_SERVICE>
port:
number: <SAME_PORT_USED_IN_SERVICE_MANIFEST_FILE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment