diff --git a/helm/easyhaproxy/templates/deployment.yaml b/helm/easyhaproxy/templates/deployment.yaml index 48ad3c7..2e38645 100644 --- a/helm/easyhaproxy/templates/deployment.yaml +++ b/helm/easyhaproxy/templates/deployment.yaml @@ -99,3 +99,6 @@ spec: {{- end }} - name: EASYHAPROXY_STATUS_UPDATE_INTERVAL value: {{ .Values.ingressStatus.updateInterval | quote }} + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} diff --git a/helm/easyhaproxy/values.yaml b/helm/easyhaproxy/values.yaml index 496d930..97bc8ab 100644 --- a/helm/easyhaproxy/values.yaml +++ b/helm/easyhaproxy/values.yaml @@ -96,5 +96,17 @@ easyhaproxy: # When service.create is true (Deployment with ClusterIP/NodePort), this is ignored masterNode: label: easyhaproxy/node - values: + values: - master + +# Extra environment variables to inject into the container +# Supports all Kubernetes env var forms: value, valueFrom (secretKeyRef, configMapKeyRef, fieldRef) +# extraEnv: +# - name: MY_VAR +# value: "my-value" +# - name: SECRET_VAR +# valueFrom: +# secretKeyRef: +# name: my-secret +# key: my-key +extraEnv: []