Skip to content

Instantly share code, notes, and snippets.

@josejulio
Created June 24, 2019 21:26
Show Gist options
  • Save josejulio/68cfd211ec32ecf20b77534576c8bd52 to your computer and use it in GitHub Desktop.
Save josejulio/68cfd211ec32ecf20b77534576c8bd52 to your computer and use it in GitHub Desktop.
Medium article - Visualizing external traffic with Kiali - googleapi-combo.yaml
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: www.googleapis.com
spec:
hosts:
- www.googleapis.com
ports:
- number: 80
name: http-port
protocol: HTTP
- number: 443
name: http-port-for-tls-origination
protocol: HTTP
resolution: DNS
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: www.googleapis.com
spec:
hosts:
- www.googleapis.com
http:
- match:
- port: 80
route:
- destination:
host: www.googleapis.com
port:
number: 443
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: www.googleapis.com
spec:
host: www.googleapis.com
trafficPolicy:
loadBalancer:
simple: ROUND_ROBIN
portLevelSettings:
- port:
number: 443
tls:
mode: SIMPLE # initiates HTTPS when accessing www.googleapis.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment