Commit db3becd9 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add gunicorn config file.

parent 83c61e06
Pipeline #34292 passed with stages
in 2 minutes and 11 seconds
bind = "0.0.0.0:5000"
reload = True
accesslog = "/dev/stdout"
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
errorlog = "/dev/stderr"
loglevel = 'debug'
workers = 3
bind = "0.0.0.0:5000"
reload = True
accesslog = "/dev/stdout"
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
errorlog = "/dev/stderr"
loglevel = 'debug'
workers = 1
......@@ -33,6 +33,9 @@ spec:
envFrom:
- configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config-map"
volumeMounts:
- name: gunicorn-conf
mountPath: "/configs"
ports:
- containerPort: {{ .Values.k8sPort }}
name: http
......@@ -44,3 +47,7 @@ spec:
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
volumes:
- name: gunicorn-conf
configMap:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-gunicorn-config-map"
\ No newline at end of file
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-gunicorn-config-map"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
data:
{{- if eq .Values.k8sEnvironment "test" }}
{{- (.Files.Glob "configmap/test/gunicorn.conf.py").AsConfig | nindent 2 }}
{{- else }}
{{- (.Files.Glob "configmap/prod/gunicorn.conf.py").AsConfig | nindent 2 }}
{{- end }}
\ No newline at end of file
Markdown is supported
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