From d925c5884f9346d9b5246f8080bb27ad154c91d6 Mon Sep 17 00:00:00 2001 From: Dev <64605024+thundersparkf@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:38:03 +0530 Subject: [PATCH] add resource templates in web and worker deployment for autoscaling (#26) * adds resource templates in web and worker deployment for autoscaling * updated chart version to 0.5.4 Signed-off-by: thundersparkf --- charts/chatwoot/Chart.yaml | 2 +- charts/chatwoot/templates/web-deployment.yaml | 6 ++++-- charts/chatwoot/templates/worker-deployment.yaml | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/chatwoot/Chart.yaml b/charts/chatwoot/Chart.yaml index 6d9c17d..f14c7ce 100644 --- a/charts/chatwoot/Chart.yaml +++ b/charts/chatwoot/Chart.yaml @@ -31,7 +31,7 @@ sources: - http://www.chatwoot.com # This is the chart version. -version: 0.5.3 +version: 0.5.4 # This is the application version. appVersion: "v1.18.2" diff --git a/charts/chatwoot/templates/web-deployment.yaml b/charts/chatwoot/templates/web-deployment.yaml index 4273c07..fc78d01 100644 --- a/charts/chatwoot/templates/web-deployment.yaml +++ b/charts/chatwoot/templates/web-deployment.yaml @@ -38,6 +38,8 @@ spec: ports: - containerPort: {{ int .Values.services.internlPort }} imagePullPolicy: {{ .Values.image.pullPolicy }} - resources: {} - + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} status: {} diff --git a/charts/chatwoot/templates/worker-deployment.yaml b/charts/chatwoot/templates/worker-deployment.yaml index 4ef00fe..74d076c 100644 --- a/charts/chatwoot/templates/worker-deployment.yaml +++ b/charts/chatwoot/templates/worker-deployment.yaml @@ -28,7 +28,10 @@ spec: {{- include "chatwoot.environ" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" name: {{ .Chart.Name }}-workers - resources: {} + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} imagePullPolicy: {{ .Values.image.pullPolicy }} status: {}