Skip to content

Instantly share code, notes, and snippets.

@sandromello
Created April 24, 2020 17:53
Show Gist options
  • Select an option

  • Save sandromello/b0a5cc982e1df1bcdc801a9cd0218574 to your computer and use it in GitHub Desktop.

Select an option

Save sandromello/b0a5cc982e1df1bcdc801a9cd0218574 to your computer and use it in GitHub Desktop.
Example Terminating TLS and proxying to an TLS external address
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