Commit 4c3a9a67 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed app deplyoment config in helm.

parent 420e3dcf
......@@ -12,7 +12,10 @@ gui:
app:
replicas: 2
threads: 16
threads: 4
worker: 8
workerClass: "sync"
nomadNodeType: "public"
worker:
replicas: 1
......
......@@ -64,10 +64,12 @@ metadata:
data:
gunicorn.conf: |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
worker_class = '{{ .Values.app.workerClass }}'
threads = {{ .Values.app.threads }}
{{ if ne .Values.app.workerClass "sync" }}
worker_class = '{{ .Values.app.workerClass }}'
threads = {{ .Values.app.threads }}
{{ end }}
worker_connections = 1000
worker = {{ .Values.app.worker }}
workers = {{ .Values.app.worker }}
---
apiVersion: apps/v1
kind: Deployment
......@@ -137,7 +139,7 @@ spec:
name: {{ .Values.keycloak.passwordSecret }}
key: password
{{ end }}
command: ["python", "-m", "gunicorn.app.wsgiapp", "--config", "gunicorn.conf", "--log-config", "gunicorn.log.conf", "-b 0.0.0.0:8000", "nomad.app:app"]
command: ["python", "-m", "gunicorn.app.wsgiapp", "--config", "/app/gunicorn.conf", "--log-config", "/app/gunicorn.log.conf", "-b 0.0.0.0:8000", "nomad.app:app"]
livenessProbe:
httpGet:
path: "{{ .Values.proxy.external.path }}/alive"
......
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