Configure environment variables for Traefik (#10928)

* Configure environment variables for Traefik

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>

* Fix indentation

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>

* Fix README typo

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>

* Fix rebase mistake

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>
This commit is contained in:
Yong Wen Chua
2019-03-04 18:31:12 -08:00
committed by Kubernetes Prow Robot
parent dc09ebad57
commit 46728cdf0d
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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 | `[]` |
+4 -1
View File
@@ -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
+2
View File
@@ -32,6 +32,8 @@ deploymentStrategy: {}
# type: RollingUpdate
securityContext: {}
env: {}
nodeSelector: {}
# key: value
affinity: {}