You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1016 B
36 lines
1016 B
{{- if .Values.ingress.enabled -}}
|
|
{{- $fullName := include "caduser.fullname" . -}}
|
|
{{- $svcPort := .Values.service.port -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ $fullName }}
|
|
labels:
|
|
{{- include "caduser.labels" . | nindent 4 }}
|
|
annotations:
|
|
kubernetes.io/ingress.class: {{ .Values.ingress.class }}
|
|
{{- if .Values.ingress.tls.enabled }}
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
{{- end }}
|
|
{{- with .Values.ingress.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.caduser.hostname }}
|
|
secretName: {{ $fullName }}-tls
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.caduser.hostname }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ $fullName }}
|
|
port:
|
|
number: {{ $svcPort }}
|
|
{{- end }}
|
|
|