Skip to content
Snippets Groups Projects
Commit a104cae8 authored by František Dvořák's avatar František Dvořák
Browse files

Create ephemeral storage

parent 122fce02
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,12 @@ singleuser: ...@@ -39,6 +39,12 @@ singleuser:
# sizeLimit problematic in this environment, # sizeLimit problematic in this environment,
# not needed for remote mounts # not needed for remote mounts
empty_dir: empty_dir:
- name: scratch
ephemeral:
volumeClaimTemplate:
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: local-path
extraVolumeMounts: extraVolumeMounts:
- name: cvmfs-host - name: cvmfs-host
mountPath: "/cvmfs:shared" mountPath: "/cvmfs:shared"
...@@ -46,9 +52,11 @@ singleuser: ...@@ -46,9 +52,11 @@ singleuser:
mountPath: '/mnt/b2drop:shared' mountPath: '/mnt/b2drop:shared'
- name: owncloud - name: owncloud
mountPath: '/mnt/owncloud:shared' mountPath: '/mnt/owncloud:shared'
- name: scratch
mountPath: '/scratch'
lifecycleHooks: lifecycleHooks:
postStart: 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: memory:
limit: 6G limit: 6G
guarantee: 128M guarantee: 128M
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment