Commit 0f03d35e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix minor config mistakes, API worker timeout.

parent 70019d9f
Pipeline #54086 passed with stages
in 22 minutes and 54 seconds
......@@ -9,7 +9,7 @@ proxy:
api:
disableReset: true
adminPasswordSecrete: 'nomad-production-repository-password'
adminPasswordSecret: 'nomad-production-repository-password'
worker:
replicas: 1
......
......@@ -9,7 +9,7 @@ proxy:
api:
disableReset: true
adminPasswordSecrete: 'nomad-production-repository-password'
adminPasswordSecret: 'nomad-production-repository-password'
worker:
replicas: 1
......
......@@ -64,6 +64,8 @@ metadata:
data:
gunicorn.conf: |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
worker_class = 'eventlet'
threads = 64
---
apiVersion: apps/v1
kind: Deployment
......@@ -121,12 +123,12 @@ spec:
{{ end }}
{{ if .Values.api.adminPasswordSecret }}
- name: NOMAD_SERVICES_ADMIN_PASSWORD
valueFrom
valueFrom:
secretKeyRef:
name: {{ .Values.api.adminPasswordSecret }}
key: password
{{ end }}
command: ["python", "-m", "gunicorn.app.wsgiapp", "--timeout", "3600", "--config", "gunicorn.conf", "--log-config", "gunicorn.log.conf", "-w", "{{ .Values.api.worker }}", "-b 0.0.0.0:8000", "nomad.api:app"]
command: ["python", "-m", "gunicorn.app.wsgiapp", "--config", "gunicorn.conf", "--log-config", "gunicorn.log.conf", "-w", "{{ .Values.api.worker }}", "-b 0.0.0.0:8000", "nomad.api:app"]
livenessProbe:
httpGet:
path: "{{ .Values.proxy.external.path }}/api/alive"
......
......@@ -69,7 +69,7 @@ spec:
{{ end }}
{{ if .Values.api.adminPasswordSecret }}
- name: NOMAD_SERVICES_ADMIN_PASSWORD
valueFrom
valueFrom:
secretKeyRef:
name: {{ .Values.api.adminPasswordSecret }}
key: password
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment