Last active
November 1, 2023 11:36
-
-
Save rsalmond/ce962a72ce72d0fecb8d45e8dafe5fc1 to your computer and use it in GitHub Desktop.
istio http rewrite example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1beta1 | |
kind: VirtualService | |
metadata: | |
name: api1 | |
spec: | |
hosts: | |
- example.com | |
http: | |
- match: | |
- uri: | |
prefix: /api1 | |
rewrite: | |
uri: "/" | |
route: | |
- destination: | |
host: api1.default.svc.cluster.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment