From cfbc1986885535019d75d1d78fd33c9538c33959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Sat, 11 May 2024 20:34:58 +0000 Subject: [PATCH] Disable scratch (slow ephemeral volumes) --- cesnet-central/deployments/fullhub.yaml | 22 +++++++++++----------- demo/deployments/hub.yaml | 24 ++++++++++++------------ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml index f9174d6..719b797 100644 --- a/cesnet-central/deployments/fullhub.yaml +++ b/cesnet-central/deployments/fullhub.yaml @@ -35,15 +35,15 @@ singleuser: # sizeLimit problematic in this environment, # not needed for remote mounts empty_dir: - - name: scratch - ephemeral: - volumeClaimTemplate: - spec: - accessModes: [ "ReadWriteOnce" ] - storageClassName: local-path - resources: - requests: - storage: "10Gi" + # - name: scratch + # ephemeral: + # volumeClaimTemplate: + # spec: + # accessModes: [ "ReadWriteOnce" ] + # storageClassName: local-path + # resources: + # requests: + # storage: "10Gi" extraVolumeMounts: - name: cvmfs-host mountPath: "/cvmfs:shared" @@ -51,8 +51,8 @@ singleuser: mountPath: '/home/jovyan/b2drop:shared' - name: owncloud mountPath: '/home/jovyan:shared' - - name: scratch - mountPath: '/scratch' + # - name: scratch + # mountPath: '/scratch' memory: limit: 6G guarantee: 128M diff --git a/demo/deployments/hub.yaml b/demo/deployments/hub.yaml index b45ca65..d9379da 100644 --- a/demo/deployments/hub.yaml +++ b/demo/deployments/hub.yaml @@ -39,15 +39,15 @@ singleuser: # sizeLimit problematic in this environment, # not needed for remote mounts empty_dir: - - name: scratch - ephemeral: - volumeClaimTemplate: - spec: - accessModes: [ "ReadWriteOnce" ] - storageClassName: local-path - resources: - requests: - storage: "10Gi" + # - name: scratch + # ephemeral: + # volumeClaimTemplate: + # spec: + # accessModes: [ "ReadWriteOnce" ] + # storageClassName: local-path + # resources: + # requests: + # storage: "10Gi" extraVolumeMounts: - name: cvmfs-host mountPath: "/cvmfs:shared" @@ -55,11 +55,11 @@ singleuser: mountPath: '/mnt/b2drop:shared' - name: owncloud mountPath: '/mnt/owncloud:shared' - - name: scratch - mountPath: '/scratch' + # - name: scratch + # mountPath: '/scratch' lifecycleHooks: postStart: - exec: { "command": ["/bin/sh", "-c", "ln -snf /mnt/b2drop $HOME/b2drop; ln -snf /mnt/owncloud $HOME/owncloud; for d in cvmfs scratch; do if ! test -e $HOME/$d; then ln -snf /$d $HOME/$d; fi; done; mkdir -p /home/jovyan/.notebookCheckpoints"] } + exec: { "command": ["/bin/sh", "-c", "ln -snf /mnt/b2drop $HOME/b2drop; ln -snf /mnt/owncloud $HOME/owncloud; for d in cvmfs; do if ! test -e $HOME/$d; then ln -snf /$d $HOME/$d; fi; done; mkdir -p /home/jovyan/.notebookCheckpoints"] } memory: limit: 4G guarantee: 512M -- GitLab