Skip to content

Commit

Permalink
build(k8s): set gunicorn settings on pod env
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Feb 27, 2024
1 parent e665bbc commit fa47530
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions k8s/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@ Define environment variables shared by some pods.
value: "{{ .Values.worker.processes }}"
- name: WORKER_THREADS
value: "{{ .Values.worker.threads }}"
- name: GUNICORN_WORKERS
value: {{ .Values.lifemonitor.gunicorn.workers }}
- name: GUNICORN_THREADS
value: {{ .Values.lifemonitor.gunicorn.threads }}
- name: GUNICORN_MAX_REQUESTS
value: {{ .Values.lifemonitor.gunicorn.max_requests }}
- name: GUNICORN_MAX_REQUESTS_JITTER
value: {{ .Values.lifemonitor.gunicorn.max_requests_jitter }}
- name: GUNICORN_WORKER_CONNECTIONS
value: {{ .Values.lifemonitor.gunicorn.worker_connections }}
- name: GUNICORN_GRACEFUL_TIMEOUT
value: {{ .Values.lifemonitor.gunicorn.graceful_timeout }}
- name: GUNICORN_TIMEOUT
value: {{ .Values.lifemonitor.gunicorn.timeout }}
- name: GUNICORN_KEEPALIVE
value: {{ .Values.lifemonitor.gunicorn.keepalive }}
- name: LIFEMONITOR_TLS_KEY
value: "/lm/certs/tls.key"
- name: LIFEMONITOR_TLS_CERT
Expand Down

0 comments on commit fa47530

Please sign in to comment.