Skip to content

Commit

Permalink
add resource templates in web and worker deployment for autoscaling (#26
Browse files Browse the repository at this point in the history
)

* adds resource templates in web and worker deployment for autoscaling
* updated chart version to 0.5.4

Signed-off-by: thundersparkf <[email protected]>
  • Loading branch information
thundersparkf authored Aug 9, 2021
1 parent 5e91e05 commit d925c58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/chatwoot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 4 additions & 2 deletions charts/chatwoot/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
5 changes: 4 additions & 1 deletion charts/chatwoot/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

0 comments on commit d925c58

Please sign in to comment.