Created
June 24, 2019 21:26
-
-
Save josejulio/68cfd211ec32ecf20b77534576c8bd52 to your computer and use it in GitHub Desktop.
Medium article - Visualizing external traffic with Kiali - googleapi-combo.yaml
This file contains 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: 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