Skip to content

Commit 99b7b02

Browse files
authored
Merge pull request #385 from snyk/feat/resource_limits_values
feat: Add cpu and mem limits/requests to values.yaml
2 parents 718a5b6 + cc772b4 commit 99b7b02

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ spec:
5050
value: /srv/app
5151
resources:
5252
requests:
53-
cpu: '250m'
54-
memory: '400Mi'
53+
cpu: {{ .Values.requests.cpu }}
54+
memory: {{ .Values.requests.memory }}
5555
limits:
56-
cpu: '1'
57-
memory: '2Gi'
56+
cpu: {{ .Values.limits.cpu }}
57+
memory: {{ .Values.limits.memory }}
5858
securityContext:
5959
runAsUser: 10001
6060
runAsGroup: 10001

snyk-monitor/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ clusterName: ""
2828
# The snyk-monitor requires disk storage to temporarily pull container images and to scan them for vulnerabilities.
2929
# This value controls how much disk storage _at most_ may be allocated for the snyk-monitor. The snyk-monitor mounts an emptyDir for storage.
3030
temporaryStorageSize: 50Gi
31+
32+
# CPU/Mem requests and limits for snyk-monitor
33+
requests:
34+
cpu: '250m'
35+
memory: '400Mi'
36+
37+
limits:
38+
cpu: '1'
39+
memory: '2Gi'

0 commit comments

Comments
 (0)