diff --git a/charts/invenio/templates/web-deployment.yaml b/charts/invenio/templates/web-deployment.yaml index aab6853..02a04b9 100644 --- a/charts/invenio/templates/web-deployment.yaml +++ b/charts/invenio/templates/web-deployment.yaml @@ -37,6 +37,9 @@ spec: value: {{ include "invenio.rabbitmq.uri" . }} - name: INVENIO_SQLALCHEMY_DATABASE_URI value: {{ include "invenio.sqlAlchemyDbUri" . }} + {{- if .Values.web.extraEnvVars }} + {{- .Values.web.extraEnvVars | toYaml | nindent 8 }} + {{- end }} - name: INVENIO_SECRET_KEY valueFrom: secretKeyRef: diff --git a/charts/invenio/templates/worker-beat-deployment.yaml b/charts/invenio/templates/worker-beat-deployment.yaml index b68693d..b44e350 100644 --- a/charts/invenio/templates/worker-beat-deployment.yaml +++ b/charts/invenio/templates/worker-beat-deployment.yaml @@ -45,6 +45,9 @@ spec: value: {{ include "invenio.rabbitmq.uri" . }} - name: INVENIO_SQLALCHEMY_DATABASE_URI value: {{ include "invenio.sqlAlchemyDbUri" . }} + {{- if .Values.workerBeat.extraEnvVars }} + {{- .Values.workerBeat.extraEnvVars | toYaml | nindent 8 }} + {{- end }} - name: INVENIO_SECRET_KEY valueFrom: secretKeyRef: diff --git a/charts/invenio/templates/worker-deployment.yaml b/charts/invenio/templates/worker-deployment.yaml index 29f79e9..363c412 100644 --- a/charts/invenio/templates/worker-deployment.yaml +++ b/charts/invenio/templates/worker-deployment.yaml @@ -41,6 +41,9 @@ spec: value: {{ include "invenio.rabbitmq.uri" . }} - name: INVENIO_SQLALCHEMY_DATABASE_URI value: {{ include "invenio.sqlAlchemyDbUri" . }} + {{- if .Values.worker.extraEnvVars }} + {{- .Values.worker.extraEnvVars | toYaml | nindent 10 }} + {{- end }} - name: INVENIO_SECRET_KEY valueFrom: secretKeyRef: diff --git a/charts/invenio/values.yaml b/charts/invenio/values.yaml index a5aaf75..4a5d8a0 100644 --- a/charts/invenio/values.yaml +++ b/charts/invenio/values.yaml @@ -103,6 +103,9 @@ web: uwsgi: processes: 6 threads: 4 + ## @param invenio.extraEnvVars Extra environment variables (templated) to be added to the pods. + ## + extraEnvVars: [] autoscaler: enabled: false scaler_cpu_utilization: 65 @@ -152,6 +155,9 @@ worker: run_mount_path: /var/run/celery celery_pidfile: /var/run/celery/celerybeat.pid celery_schedule: /var/run/celery/celery-schedule + ## @param invenio.extraEnvVars Extra environment variables (templated) to be added to the pods. + ## + extraEnvVars: [] resources: requests: cpu: 500m @@ -163,6 +169,9 @@ worker: enabled: false workerBeat: + ## @param invenio.extraEnvVars Extra environment variables (templated) to be added to the pods. + ## + extraEnvVars: [] resources: requests: cpu: 500m