diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 5b3a405..13555f8 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -14,6 +14,9 @@ metadata: {{ $key }}: {{ $value | quote }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} rules: - host: {{ .Values.ingress.host }} http: diff --git a/chart/values.yaml b/chart/values.yaml index 7518b15..682dd07 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -151,6 +151,9 @@ ingress: ## Set to true to enable ingress record generation enabled: false + ## Add ingressClassName to the Ingress + ## Can replace the kubernetes.io/ingress.class annotation on v1.18+ + ingressClassName: ~ host: xip.io