Skip to content

Commit e0153f3

Browse files
authored
Merge pull request #164 from snyk/fix/adjustable-storage
fix: increase temporary storage to 50Gi
2 parents 993fd83 + 7fb1e42 commit e0153f3

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ kubectl apply -f snyk-monitor-deployment.yaml
7979
## Enabling static analysis ##
8080

8181
Static analysis works with any container runtime and does not rely on Docker to scan the images in your cluster.
82-
It works by pulling the image, unpacking it and inspecting the files directly. For this process it needs temporary storage, so the Snyk monitor uses 20 GB of storage in the form of [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir).
82+
It works by pulling the image, unpacking it and inspecting the files directly. For this process it needs temporary storage, so the Snyk monitor uses 50 GB of storage in the form of [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir).
8383

8484
To enable static analysis, modify one of the permissions files (`snyk-monitor-namespaced-permissions.yaml` for the Namespaced deployment or `snyk-monitor-cluster-permissions.yaml` for the Cluster-scoped deployment) and set the string value of `staticAnalysis` to `"true"`.

snyk-monitor-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ spec:
7979
path: config.json
8080
- name: temporary-storage
8181
emptyDir:
82-
sizeLimit: 20Gi
82+
sizeLimit: 50Gi
8383
serviceAccountName: snyk-monitor

snyk-monitor/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ helm upgrade --generate-name --install snyk-monitor snyk-charts/snyk-monitor --n
7474
## Enabling static analysis ##
7575

7676
Static analysis works with any container runtime and does not rely on Docker to scan the images in your cluster.
77-
It works by pulling the image, unpacking it and inspecting the files directly. For this process it needs temporary storage, so the Snyk monitor uses 20 GB of storage in the form of [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir).
77+
It works by pulling the image, unpacking it and inspecting the files directly. For this process it needs temporary storage, so the Snyk monitor uses 50 GB of storage in the form of [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir).
7878
The Docker socket is _not_ mounted when static analysis is enabled.
7979

8080
To enable static analysis, set the `featureFlags.staticAnalysis` value to `true`:

snyk-monitor/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ spec:
7474
{{- if eq .Values.featureFlags.staticAnalysis true }}
7575
- name: temporary-storage
7676
emptyDir:
77-
sizeLimit: 20Gi
77+
sizeLimit: {{ .Values.temporaryStorageSize }}
7878
{{- end }}

snyk-monitor/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ dockerSocketHostPath: "/var/run/docker.sock"
3030

3131
featureFlags:
3232
staticAnalysis: false
33+
34+
# The snyk-monitor requires disk storage to temporarily pull container images and to scan them for vulnerabilities.
35+
# This value controls how much disk storage _at most_ may be allocated for the snyk-monitor. The snyk-monitor mounts an emptyDir for storage.
36+
temporaryStorageSize: 50Gi

0 commit comments

Comments
 (0)