Skip to content

Commit 3f31208

Browse files
weltekialexellis
authored andcommitted
Add resource requests to the queue-worker
Update the queue-worker helm chart to add minimal resource requests. This also allows the cluster operator to customize the resources used. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent fff5e9e commit 3f31208

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

chart/queue-worker/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ spec:
3131
secretName: openfaas-license
3232
containers:
3333
- name: queue-worker
34+
resources:
35+
{{- .Values.resources | toYaml | nindent 10 }}
3436
image: {{ .Values.image }}
3537
imagePullPolicy: {{ .Values.imagePullPolicy }}
3638
command:

chart/queue-worker/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ logs:
3939
debug: false
4040
format: "console"
4141

42+
resources:
43+
requests:
44+
memory: "120Mi"
45+
cpu: "50m"
46+
4247
imagePullPolicy: IfNotPresent
4348

4449
nodeSelector: {}

0 commit comments

Comments
 (0)