From f75f93fc61fb473ecbf0cceb37c00a671db1f2d4 Mon Sep 17 00:00:00 2001 From: Alessandro Ogier Date: Tue, 7 Jan 2025 17:59:21 +0100 Subject: [PATCH] set an explicit ingress class name --- kubernetes/chart/zulip/README.md | 1 + kubernetes/chart/zulip/templates/ingress.yaml | 3 +++ kubernetes/chart/zulip/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/kubernetes/chart/zulip/README.md b/kubernetes/chart/zulip/README.md index c4d00cc145..e6ba31cbe6 100644 --- a/kubernetes/chart/zulip/README.md +++ b/kubernetes/chart/zulip/README.md @@ -79,6 +79,7 @@ Now you're ready to follow [the installation instructions above](#installation). | ingress.hosts[0] | object | `{"host":"zulip.example.com","paths":[{"path":"/"}]}` | Host for the Ingress. Should be the same as `zulip.environment.SETTING_EXTERNAL_HOST`. | | ingress.hosts[0].paths | list | `[{"path":"/"}]` | Serves Zulip root of the chosen host domain. | | ingress.tls | list | `[]` | Set a specific secret to read the TLS certificate from. If you use cert-manager, it will save the TLS secret here. If you do not, you need to manually create a secret with your TLS certificate. | +| ingress.className | string | `""` | specify an explicit ingressClassName. | | livenessProbe | object | `{"enabled":true,"failureThreshold":3,"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5}` | Liveness probe values. Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes | | memcached | object | `{"memcachedUsername":"zulip@localhost"}` | Memcached settings, see [Requirements](#Requirements). | | nameOverride | string | `""` | Partially override common.names.fullname template (will maintain the release name). | diff --git a/kubernetes/chart/zulip/templates/ingress.yaml b/kubernetes/chart/zulip/templates/ingress.yaml index 72ee37db61..43c8c24f28 100644 --- a/kubernetes/chart/zulip/templates/ingress.yaml +++ b/kubernetes/chart/zulip/templates/ingress.yaml @@ -12,6 +12,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/kubernetes/chart/zulip/values.yaml b/kubernetes/chart/zulip/values.yaml index cfa8f0b9a8..81bae4b132 100644 --- a/kubernetes/chart/zulip/values.yaml +++ b/kubernetes/chart/zulip/values.yaml @@ -94,6 +94,8 @@ ingress: # - secretName: chart-example-tls # hosts: # - zulip.example.com + # set an explicit class name + className: resources: {}