deploy(minor): deploy more servers with more resources

This commit is contained in:
Langhammer, Jens 2019-10-07 18:41:43 +02:00
parent ec73b53340
commit 862fb0f5d2
4 changed files with 7 additions and 10 deletions

View File

@ -2,7 +2,7 @@
http = 0.0.0.0:8000 http = 0.0.0.0:8000
chdir = /app chdir = /app
wsgi-file = passbook/root/wsgi.py wsgi-file = passbook/root/wsgi.py
processes = 4 processes = 2
master = true master = true
threads = 2 threads = 2
enable-threads = true enable-threads = true

View File

@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: 2
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "passbook.name" . }} app.kubernetes.io/name: {{ include "passbook.name" . }}
@ -95,8 +95,8 @@ spec:
value: kubernetes-healthcheck-host value: kubernetes-healthcheck-host
resources: resources:
requests: requests:
cpu: 50m cpu: 100m
memory: 150M memory: 200M
limits: limits:
cpu: 200m cpu: 300m
memory: 300M memory: 350M

View File

@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "passbook.name" . }} app.kubernetes.io/name: {{ include "passbook.name" . }}

View File

@ -1,9 +1,6 @@
# Default values for passbook. # Default values for passbook.
# This is a YAML-formatted file. # This is a YAML-formatted file.
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
replicaCount: 1
image: image:
tag: 0.6.0-beta tag: 0.6.0-beta