Skip to content

Instantly share code, notes, and snippets.

@mrsimonemms
Created December 17, 2021 08:24
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 mrsimonemms/480e88c149f6e725c727cc1f20b21474 to your computer and use it in GitHub Desktop.
Save mrsimonemms/480e88c149f6e725c727cc1f20b21474 to your computer and use it in GitHub Desktop.
Gitpod installer ingress example
# Replace $DOMAIN with your own domain
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitpod
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
tls:
- hosts:
- "$DOMAIN"
- "*.$DOMAIN"
- "*.ws.$DOMAIN"
secretName: https-certificates
rules:
- host: "$DOMAIN"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxy
port:
number: 443
- host: "*.$DOMAIN"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxy
port:
number: 443
- host: "*.ws.$DOMAIN"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxy
port:
number: 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment