diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index cd26e47635..7bde37d3f9 100644 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: traefik -version: 1.62.1 +version: 1.63.0 appVersion: 1.7.9 description: A Traefik based Kubernetes ingress controller with Let's Encrypt support keywords: diff --git a/stable/traefik/README.md b/stable/traefik/README.md index 4e09c8dfc0..0772afadc9 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -107,6 +107,7 @@ The following table lists the configurable parameters of the Traefik chart and t | `rbac.enabled` | Whether to enable RBAC with a specific cluster role and binding for Traefik | `false` | | `deploymentStrategy` | Specify deployment spec rollout strategy | `{}` | | `securityContext` | Security context | `{}` | +| `env` | Environment variables for the container | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `affinity` | Affinity settings | `{}` | | `tolerations` | List of node taints to tolerate | `[]` | diff --git a/stable/traefik/templates/deployment.yaml b/stable/traefik/templates/deployment.yaml index f4b263672a..1a00d07a0c 100644 --- a/stable/traefik/templates/deployment.yaml +++ b/stable/traefik/templates/deployment.yaml @@ -91,7 +91,7 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 2 - {{- if and .Values.acme.enabled (eq .Values.acme.challengeType "dns-01") .Values.acme.dnsProvider.name }} + {{- if or (and .Values.acme.enabled (eq .Values.acme.challengeType "dns-01") .Values.acme.dnsProvider.name) .Values.env }} env: {{- range $k, $v := (index .Values.acme.dnsProvider .Values.acme.dnsProvider.name) }} {{- if $v }} @@ -102,6 +102,9 @@ spec: key: {{ $k }} {{- end }} {{- end }} + {{- if .Values.env }} +{{ toYaml .Values.env | indent 10 }} + {{- end }} {{- end }} volumeMounts: - mountPath: /config diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index a0c639d670..a3aa1ca8e8 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -32,6 +32,8 @@ deploymentStrategy: {} # type: RollingUpdate securityContext: {} +env: {} + nodeSelector: {} # key: value affinity: {}