diff --git a/charts/fluentd/templates/ingress.yaml b/charts/fluentd/templates/ingress.yaml index e8377138..f02f7c29 100644 --- a/charts/fluentd/templates/ingress.yaml +++ b/charts/fluentd/templates/ingress.yaml @@ -14,6 +14,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end } {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/fluentd/values.yaml b/charts/fluentd/values.yaml index 59a66531..4afd2184 100644 --- a/charts/fluentd/values.yaml +++ b/charts/fluentd/values.yaml @@ -380,6 +380,7 @@ fileConfigs: ingress: enabled: false + className: "" annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true"