diff --git a/charts/core/traefik/templates/_args.tpl b/charts/core/traefik/templates/_args.tpl index 95487d14a33..a4e1578b9fd 100644 --- a/charts/core/traefik/templates/_args.tpl +++ b/charts/core/traefik/templates/_args.tpl @@ -63,6 +63,9 @@ args: - "--providers.kubernetesingress.namespaces={{ template "providers.kubernetesIngress.namespaces" . }}" {{- end }} {{- end }} + {{- if .Values.ingressClass.enabled }} + - "--providers.kubernetesingress.ingressclass="{{ .Release.Name }} + {{- end }} {{- range $entrypoint, $config := $ports }} {{/* add args for forwardedHeaders support */}} {{- if $config.forwardedHeaders.enabled }}