From ddd930a8dce6eb2eafb4e1d3dd2dc18bdcd6b7cc Mon Sep 17 00:00:00 2001 From: ShuzZzle Date: Fri, 5 Nov 2021 11:41:31 +0100 Subject: [PATCH] add ingressclass to ingress resource --- README.md | 2 ++ templates/nginx/nginx-ingress.yaml | 3 +++ values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 4e65980b..23b1ee71 100644 --- a/README.md +++ b/README.md @@ -422,6 +422,8 @@ Kubernetes: `^1.19.0-0` | ingress.​enabled | bool | `false` | | | ingress.​hosts[0].​host | string | `"chart-example.local"` | | | ingress.​hosts[0].​paths[0] | string | `"/"` | | +| ingress.​ingressClass.​enabled | bool | `true` | | +| ingress.​ingressClass.​name | string | `"nginx"` | | | ingress.​tls | list | `[]` | | | memcached-blocks-index.​architecture | string | `"high-availability"` | | | memcached-blocks-index.​extraEnv[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage | diff --git a/templates/nginx/nginx-ingress.yaml b/templates/nginx/nginx-ingress.yaml index bca04ee0..51e66096 100755 --- a/templates/nginx/nginx-ingress.yaml +++ b/templates/nginx/nginx-ingress.yaml @@ -9,6 +9,9 @@ metadata: annotations: {{- toYaml .Values.ingress.annotations | nindent 4 }} spec: +{{- if .Values.ingress.ingressClass.enabled }} + ingressClassName: {{ .Values.ingress.ingressClass.name }} +{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/values.yaml b/values.yaml index 7373bed1..b4d7088d 100644 --- a/values.yaml +++ b/values.yaml @@ -22,6 +22,9 @@ tags: ingress: enabled: false + ingressClass: + enabled: true + name: "nginx" annotations: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true"