From 862fb0f5d28c0d4fbc242e34f755a28bf754fd66 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Mon, 7 Oct 2019 18:41:43 +0200 Subject: [PATCH] deploy(minor): deploy more servers with more resources --- docker/uwsgi.ini | 2 +- helm/passbook/templates/web-deployment.yaml | 10 +++++----- helm/passbook/templates/worker-deployment.yaml | 2 +- helm/passbook/values.yaml | 3 --- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/docker/uwsgi.ini b/docker/uwsgi.ini index 1ec38bfd6..464aa771f 100644 --- a/docker/uwsgi.ini +++ b/docker/uwsgi.ini @@ -2,7 +2,7 @@ http = 0.0.0.0:8000 chdir = /app wsgi-file = passbook/root/wsgi.py -processes = 4 +processes = 2 master = true threads = 2 enable-threads = true diff --git a/helm/passbook/templates/web-deployment.yaml b/helm/passbook/templates/web-deployment.yaml index dd16165c3..aceab34bb 100644 --- a/helm/passbook/templates/web-deployment.yaml +++ b/helm/passbook/templates/web-deployment.yaml @@ -8,7 +8,7 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: - replicas: {{ .Values.replicaCount }} + replicas: 2 selector: matchLabels: app.kubernetes.io/name: {{ include "passbook.name" . }} @@ -95,8 +95,8 @@ spec: value: kubernetes-healthcheck-host resources: requests: - cpu: 50m - memory: 150M + cpu: 100m + memory: 200M limits: - cpu: 200m - memory: 300M + cpu: 300m + memory: 350M diff --git a/helm/passbook/templates/worker-deployment.yaml b/helm/passbook/templates/worker-deployment.yaml index 4e90f851e..47028cec4 100644 --- a/helm/passbook/templates/worker-deployment.yaml +++ b/helm/passbook/templates/worker-deployment.yaml @@ -8,7 +8,7 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: - replicas: {{ .Values.replicaCount }} + replicas: 1 selector: matchLabels: app.kubernetes.io/name: {{ include "passbook.name" . }} diff --git a/helm/passbook/values.yaml b/helm/passbook/values.yaml index 4b032791f..10d523c87 100644 --- a/helm/passbook/values.yaml +++ b/helm/passbook/values.yaml @@ -1,9 +1,6 @@ # Default values for passbook. # This is a YAML-formatted file. # Declare variables to be passed into your templates. - -replicaCount: 1 - image: tag: 0.6.0-beta