Skip to content

Instantly share code, notes, and snippets.

@rdpetrusek
Last active November 27, 2022 13:42
Show Gist options
  • Select an option

  • Save rdpetrusek/18655d7a204585ff5eead327629e42da to your computer and use it in GitHub Desktop.

Select an option

Save rdpetrusek/18655d7a204585ff5eead327629e42da to your computer and use it in GitHub Desktop.
Kubernetes, Istio, Cert Manager, and Let's Encrypt - Gateways
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: gateway-prod
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "deanpetrusek.cloud"
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: deanpetrusek-domain-cert-prod
hosts:
- "www.deanpetrusek.cloud"
- "fx.deanpetrusek.cloud"
- "testpage.deanpetrusek.cloud"
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: gateway-staging
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "certstaging.deanpetrusek.cloud"
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: deanpetrusek-domain-cert-staging
hosts:
- "certstaging.deanpetrusek.cloud"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment