Created
April 24, 2020 17:53
-
-
Save sandromello/b0a5cc982e1df1bcdc801a9cd0218574 to your computer and use it in GitHub Desktop.
Example Terminating TLS and proxying to an TLS external address
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/v1alpha3 | |
| kind: VirtualService | |
| metadata: | |
| name: google-proxy-test | |
| spec: | |
| hosts: | |
| - google-proxy-test.mydomain.tld | |
| gateways: | |
| - istio-gateway | |
| http: | |
| - match: | |
| - uri: | |
| regex: .+ | |
| rewrite: | |
| authority: www.googleapis.com | |
| route: | |
| - destination: | |
| host: www.googleapis.com | |
| port: | |
| number: 443 | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: ServiceEntry | |
| metadata: | |
| name: google-proxy-test | |
| spec: | |
| hosts: | |
| - www.googleapis.com | |
| ports: | |
| - number: 443 | |
| name: https | |
| protocol: TLS | |
| location: MESH_EXTERNAL | |
| resolution: DNS | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: DestinationRule | |
| metadata: | |
| name: google-proxy-test | |
| spec: | |
| host: www.googleapis.com | |
| trafficPolicy: | |
| tls: | |
| mode: SIMPLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment