This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountHelm/templates/ingress.yml
2019-11-27 17:13:24 +01:00

56 lines
1.3 KiB
YAML

{{ if .Values.ingress.enabled }}
{{ if .Values.ingress.ssl }}
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: ingress-tls
namespace: {{ .Release.Namespace }}
spec:
secretName: ingress-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: '{{ .Values.ingress.url }}'
dnsNames:
- {{ .Values.ingress.url }}
{{ end }}
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
namespace: {{ .Release.Namespace }}
spec:
rules:
- host: {{ .Values.ingress.url }}
http:
paths:
- path: /gitlab/
backend:
serviceName: ingress-api
servicePort: 80
- path: /oauth/
backend:
serviceName: ingress-api
servicePort: 80
- path: /api/
backend:
serviceName: ingress-api
servicePort: 80
{{ if .Values.ingress.oldGui }}
- path: /gui/
backend:
serviceName: ingress-api
servicePort: 80
{{ end }}
- path: /
backend:
serviceName: ingress-gui
servicePort: 80
{{ if .Values.ingress.ssl }}
tls:
- secretName: ingress-tls
{{ end }}
{{ end }}