summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-17 13:45:39 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-18 17:48:14 +0000
commitf0803b2c056cddb1a49b3cc99d4eba26ae099b40 (patch)
treed6c6c85da97c6eedd9480bb0deca931d98038cd8 /shell
parentbc30e1968d1e8b659ebd3671249c9a13b4514a47 (diff)
[OOM] use ramdisk to store chartmuseum packages
it seems that chartmuseum may block if place where it stores the results is not fast enough. We then create a small ramdisk in order to store these. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I36cad6e56f9390bb058beea08df0bf51eda97a09
Diffstat (limited to 'shell')
-rwxr-xr-xshell/helm-repo-init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/helm-repo-init.sh b/shell/helm-repo-init.sh
index 6bf1338e3..c3b0a36d6 100755
--- a/shell/helm-repo-init.sh
+++ b/shell/helm-repo-init.sh
@@ -3,6 +3,7 @@
set -e -o pipefail
mkdir -p ".chartstorage"
-chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &
+sudo mount -t tmpfs -o size=128M tmpfs .chartstorage
+chartmuseum --debug --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &
helm3 plugin install https://github.com/chartmuseum/helm-push.git
helm3 repo add local http://localhost:6464