diff --git a/moon2/templates/ingress.yaml b/moon2/templates/ingress.yaml index 4ce9e69..346ece3 100644 --- a/moon2/templates/ingress.yaml +++ b/moon2/templates/ingress.yaml @@ -132,6 +132,9 @@ metadata: {{- if .Values.ingress.proxyBodySize }} nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.proxyBodySize | quote }} {{- end }} + {{- range $key, $value := .Values.ingress.customAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: {{- if $enableTLS }} tls: @@ -213,6 +216,9 @@ metadata: {{- if .Values.ingress.proxyBodySize }} nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.proxyBodySize | quote }} {{- end }} + {{- range $key, $value := .Values.ingress.customAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: ingressClassName: nginx {{- if $enableTLS }} diff --git a/moon2/values.yaml b/moon2/values.yaml index 68d51a2..735297a 100644 --- a/moon2/values.yaml +++ b/moon2/values.yaml @@ -34,7 +34,8 @@ ingress: host: moon.aerokube.local ## - ## TLS settings. When provided Ingress switches to HTTPS-only mode. + ## Files with TLS certificate and TLS key. When provided Ingress switches to HTTPS-only mode. + ## Set to empty files if you need HTTPS, but do not need to provide key and cert manually(i.g. use cert-manager) ## tlsCert: tlsKey: @@ -56,6 +57,11 @@ ingress: ## openshift: + ## + ## Add custom annotations to ingress + ## + customAnnotations: {} + ## ## Moon service account annotations. ##