Skip to content

Commit 474f624

Browse files
authored
Merge pull request #882 from snyk/fix/configurable-requests-and-limits
fix: allow requests and limits to be configurable
2 parents 0e4f30a + d3ceda0 commit 474f624

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

snyk-monitor/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,16 @@ helm upgrade --install snyk-monitor snyk-charts/snyk-monitor \
237237
--set volumes.projected.serviceAccountToken=true
238238
```
239239

240+
## Configuring resources
241+
242+
If more resources is required in order to deploy snyk-monitor, you can configure the helm charts default value for requests and limits with the `--set` flag.
243+
```shell
244+
helm upgrade --install snyk-monitor snyk-charts/snyk-monitor \
245+
--namespace snyk-monitor \
246+
--set requests."ephemeral-storage"="50Gi"
247+
--set limits."ephemeral-storage"="50Gi"
248+
```
249+
240250
## Using custom CA certificate
241251
You can provide custom CA certificates to use for validating TLS connections by adding them to a ConfigMap named snyk-monitor-certs. These additional certificates are used when pulling images from container registries.
242252

snyk-monitor/templates/deployment.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ spec:
127127
{{- toYaml . | trim | nindent 10 -}}
128128
{{- end }}
129129
resources:
130+
{{- with .Values.requests }}
130131
requests:
131-
cpu: {{ .Values.requests.cpu }}
132-
memory: {{ .Values.requests.memory }}
132+
{{- toYaml . | nindent 14 }}
133+
{{- end }}
134+
{{- with .Values.limits }}
133135
limits:
134-
cpu: {{ .Values.limits.cpu }}
135-
memory: {{ .Values.limits.memory }}
136+
{{- toYaml . | nindent 14 }}
137+
{{- end }}
136138
livenessProbe:
137139
exec:
138140
command:

0 commit comments

Comments
 (0)