diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml index 0d190dd1bbc9c4215096880d6ee6879a3c622033..f075781f355fa5c5bf1ba27685a9f5389108bba6 100644 --- a/cesnet-central/deployments/fullhub.yaml +++ b/cesnet-central/deployments/fullhub.yaml @@ -39,6 +39,12 @@ singleuser: # sizeLimit problematic in this environment, # not needed for remote mounts empty_dir: + - name: scratch + ephemeral: + volumeClaimTemplate: + spec: + accessModes: [ "ReadWriteOnce" ] + storageClassName: local-path extraVolumeMounts: - name: cvmfs-host mountPath: "/cvmfs:shared" @@ -46,9 +52,11 @@ singleuser: mountPath: '/mnt/b2drop:shared' - name: owncloud mountPath: '/mnt/owncloud:shared' + - name: scratch + mountPath: '/scratch' lifecycleHooks: postStart: - exec: { "command": ["/bin/sh", "-c", "ln -snf /mnt/b2drop $HOME/b2drop; ln -snf /mnt/owncloud $HOME/owncloud; ln -snf /cvmfs $HOME/cvmfs; 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 scratch; do if ! test -e $HOME/$d; then ln -snf /$d $HOME/$d; fi; done; mkdir -p /home/jovyan/.notebookCheckpoints"] } memory: limit: 6G guarantee: 128M