Browse Source

Helm chart improved for ingress (#19826)

* ingressClassName

* ingress values must be optional
closed-social-glitch-2
mickkael 1 year ago
committed by GitHub
parent
commit
6c7cdedb24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions
  1. +3
    -0
      chart/templates/ingress.yaml
  2. +4
    -2
      chart/values.yaml

+ 3
- 0
chart/templates/ingress.yaml View File

@ -19,6 +19,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}

+ 4
- 2
chart/values.yaml View File

@ -104,8 +104,8 @@ mastodon:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
#kubernetes.io/ingress.class: nginx
#kubernetes.io/tls-acme: "true"
# cert-manager.io/cluster-issuer: "letsencrypt"
#
# ensure that NGINX's upload size matches Mastodon's
@ -113,6 +113,8 @@ ingress:
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
# for the NGINX ingress controller:
# nginx.org/client-max-body-size: 40m
# you can specify the ingressClassName if it differs from the default
ingressClassName:
hosts:
- host: mastodon.local
paths:

Loading…
Cancel
Save