Skip to content

Commit

Permalink
Merge pull request #2031 from NCEAS/feature-1954-k8s-ingress-defaultb…
Browse files Browse the repository at this point in the history
…ackend

add configurable ingress defaultBackend for arcticdata.io wordpress s…
  • Loading branch information
artntek authored Dec 4, 2024
2 parents 0cd5529 + 055790d commit 7083d68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ metadata:
{{ . | nindent 6 }}
{{- end }}
spec:
{{- if .Values.ingress.defaultBackend.enabled }}
defaultBackend:
{{- omit .Values.ingress.defaultBackend "enabled" | toYaml | nindent 4 }}
{{- end }}
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
Expand Down
15 changes: 15 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,21 @@ ingress:
# https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
nginx.ingress.kubernetes.io/client_max_body_size: "10m"

## @param ingress.defaultBackend (optional) default for any requests not matching defined paths
## If none of the hosts or paths match the HTTP request in the Ingress objects, the traffic is
## routed to your default backend. Not typically required, unless metacatui
## Content included here under `defaultBackend` will be added to the ingress definition under
## `spec.defaultBackend'; for example:
##
## spec:
## defaultBackend:
## service:
## name: myrelease-wordpress
## port:
## number: 80
##
defaultBackend: []

## @param ingress.rewriteRules rewrite rules for the nginx ingress
## These rules will be added to the section
## metadata:
Expand Down

0 comments on commit 7083d68

Please sign in to comment.