File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
helm/aws-load-balancer-controller Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ The default values set by the application itself can be confirmed [here](https:/
243
243
| ` externalManagedTags ` | Specifies the list of tag keys on AWS resources that are managed externally | ` [] ` |
244
244
| ` livenessProbe ` | Liveness probe settings for the controller | (see ` values.yaml ` ) |
245
245
| ` env ` | Environment variables to set for aws-load-balancer-controller pod | None |
246
+ | ` envFrom ` | Environment variables to set for aws-load-balancer-controller pod from configMap or Secret | None |
247
+
246
248
| ` envSecretName ` | AWS credentials as environment variables from Secret (Secret keys ` key_id ` and ` access_key ` ). | None |
247
249
| ` hostNetwork ` | If ` true ` , use hostNetwork | ` false ` |
248
250
| ` dnsPolicy ` | Set dnsPolicy if required | ` ClusterFirst ` |
Original file line number Diff line number Diff line change @@ -170,14 +170,17 @@ spec:
170
170
{{- if .Values.loadBalancerClass }}
171
171
- --load-balancer-class={{ .Values.loadBalancerClass }}
172
172
{{- end }}
173
- {{- if or .Values.env .Values.envSecretName }}
173
+ {{- if or .Values.env .Values.envSecretName .Values.envFrom }}
174
174
env :
175
175
{{- if .Values.env}}
176
176
{{- range $key, $value := .Values.env }}
177
177
- name : {{ $key }}
178
178
value : " {{ $value }}"
179
179
{{- end }}
180
180
{{- end }}
181
+ {{- if .Values.envFrom }}
182
+ {{ .Values.envFrom | toYaml | nindent 8 }}
183
+ {{- end }}
181
184
{{- if .Values.envSecretName }}
182
185
- name : AWS_ACCESS_KEY_ID
183
186
valueFrom :
Original file line number Diff line number Diff line change @@ -281,8 +281,13 @@ env:
281
281
# Use Environment variables credentials from Secret (aws-secret) for aws-load-balancer-controller pod similarly as The EBS CSI Driver does.
282
282
# envSecretName: aws-secret
283
283
284
+ # Use envFrom to set environment variables from a Secret or ConfigMap
285
+ envFrom :
286
+ # valueFrom:
287
+ # - secretKeyRef:
288
+ # name: aws-load-balancer-controller
289
+
284
290
# Specifies if aws-load-balancer-controller should be started in hostNetwork mode.
285
- #
286
291
# This is required if using a custom CNI where the managed control plane nodes are unable to initiate
287
292
# network connections to the pods, for example using Calico CNI plugin on EKS. This is not required or
288
293
# recommended if using the Amazon VPC CNI plugin.
You can’t perform that action at this time.
0 commit comments