56 lines
1.3 KiB
YAML
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 }}
|