From a11d8f7e0b071dc0a57bf0da7cb1664e8357a1d4 Mon Sep 17 00:00:00 2001 From: Ben Oukhanov Date: Mon, 16 Dec 2024 15:43:20 +0200 Subject: [PATCH] fix(CNV-53190): use emptyDir to store downloaded disk Currently the downloaded disk image from the source will be stored inside container's temporary file system, that consumes RAM, and instead it should be stored in the node's storage by using emptyDir. Signed-off-by: Ben Oukhanov --- release/tasks/disk-uploader/disk-uploader.yaml | 6 ++++++ templates/disk-uploader/manifests/disk-uploader.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/release/tasks/disk-uploader/disk-uploader.yaml b/release/tasks/disk-uploader/disk-uploader.yaml index ad6c5bda7..1f49fd5c7 100644 --- a/release/tasks/disk-uploader/disk-uploader.yaml +++ b/release/tasks/disk-uploader/disk-uploader.yaml @@ -83,3 +83,9 @@ spec: memory: "3Gi" limits: memory: "5Gi" + volumeMounts: + - mountPath: /tmp + name: disk + volumes: + - name: disk + emptyDir: {} diff --git a/templates/disk-uploader/manifests/disk-uploader.yaml b/templates/disk-uploader/manifests/disk-uploader.yaml index 60f8e45d8..c2a4c1935 100644 --- a/templates/disk-uploader/manifests/disk-uploader.yaml +++ b/templates/disk-uploader/manifests/disk-uploader.yaml @@ -83,3 +83,9 @@ spec: memory: "3Gi" limits: memory: "5Gi" + volumeMounts: + - mountPath: /tmp + name: disk + volumes: + - name: disk + emptyDir: {}