Add general env configuration to Armada API

This is primarly intended for use to configure proxy settings.

Change-Id: Iec0051f96b01083c602d230cca5c1a4711bee2c1
This commit is contained in:
Mark Burnett 2018-01-19 14:09:54 -06:00
parent cacc84a1b0
commit b10dfdecc9
2 changed files with 21 additions and 0 deletions

View File

@ -50,6 +50,13 @@ spec:
image: {{ .Values.images.tags.api }}
imagePullPolicy: {{ .Values.images.pull_policy }}
{{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
{{- if .Values.pod.env.armada_api }}
env:
{{- range .Values.pod.env.armada_api }}
- name: {{ .name | quote }}
value: {{ .value | quote }}
{{- end }}
{{- end }}
securityContext:
runAsUser: {{ .Values.pod.user.armada.uid }}
ports:

View File

@ -155,6 +155,20 @@ conf:
tiller:get_released: "rule:admin_required"
pod:
env:
armada_api:
# - name: http_proxy
# value: http://proxy.example.com:8080
# - name: https_proxy
# value: http://proxy.example.com:8080
# - name: no_proxy
# value: 10.96.0.1
# - name: HTTP_PROXY
# value: http://proxy.example.com:8080
# - name: HTTPS_PROXY
# value: http://proxy.example.com:8080
# - name: NO_PROXY
# value: 10.96.0.1
mounts:
armada_api:
init_container: null