diff --git a/charts/atlas-operator/templates/deployment.yaml b/charts/atlas-operator/templates/deployment.yaml index 95df3d49..72c35d57 100644 --- a/charts/atlas-operator/templates/deployment.yaml +++ b/charts/atlas-operator/templates/deployment.yaml @@ -57,6 +57,9 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + {{- with .Values.extraEnvs }} +{{- toYaml . | nindent 10 }} + {{- end }} ports: - name: http containerPort: 80 diff --git a/charts/atlas-operator/values.yaml b/charts/atlas-operator/values.yaml index cd82d773..8e35de2a 100644 --- a/charts/atlas-operator/values.yaml +++ b/charts/atlas-operator/values.yaml @@ -85,6 +85,20 @@ podSecurityContext: # More information: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ securityContext: allowPrivilegeEscalation: false + +# configure extra environment variables +# Extra environment variables are writen in kubernetes format and added "as is" to the pod's env variables +# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/ +# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables +extraEnvs: + [] + # Exemple of setting environment variables + # - name: MY_VAR + # value: my-value + # - name: GOMEMLIMIT + # valueFrom: + # resourceFieldRef: + # resource: limits.memory # resources sets resources for the Operator container. # More information: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/