Skip to content

Instantly share code, notes, and snippets.

@peterj
Created June 1, 2021 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterj/2763fe8faf9b961ff5bed1db914f4a72 to your computer and use it in GitHub Desktop.
Save peterj/2763fe8faf9b961ff5bed1db914f4a72 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: istioweekly-com-tls
hosts:
- 'istioweekly.com'
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: web-frontend
spec:
hosts:
- 'istioweekly.com'
gateways:
- gateway
http:
- route:
- destination:
host: web-frontend.default.svc.cluster.local
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment