Skip to content

Commit

Permalink
Add custom annotations to ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-ak committed Apr 26, 2022
1 parent 0fb148b commit da9c74f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions moon2/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
8 changes: 7 additions & 1 deletion moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -56,6 +57,11 @@ ingress:
##
openshift:

##
## Add custom annotations to ingress
##
customAnnotations: {}

##
## Moon service account annotations.
##
Expand Down

0 comments on commit da9c74f

Please sign in to comment.