diff options
author | mickkael <19755421+mickkael@users.noreply.github.com> | 2022-11-11 02:11:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 19:11:25 +0100 |
commit | 6c7cdedb2460b3fed1000b1c84e6a1fdffda4c5c (patch) | |
tree | 2c7d6fc2c77494b4509c786f0463a1f402a15900 /chart | |
parent | 60c4df3d1df5b15b488498bea5220363ee5d22d8 (diff) |
Helm chart improved for ingress (#19826)
* ingressClassName * ingress values must be optional
Diffstat (limited to 'chart')
-rw-r--r-- | chart/templates/ingress.yaml | 3 | ||||
-rw-r--r-- | chart/values.yaml | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 811d98a22..086638297 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -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 }} diff --git a/chart/values.yaml b/chart/values.yaml index 16f319fe0..c19ab9ed2 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -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: |