Hi - I was wondering what the right method of using PVCs for home directories (with kubespawner) are. Currently using the singleuser 0.9.4 docker image, but I’m comfortable building my own image if that becomes necessary.
I’m provisioning the PVCs myself (so pvc_ensure) is off, and then passing the PVC via volumes, and volume_mounts into kube spawner.
I’ve tried setting the path of the volume mount to be “/”, “/home”, and “/home/jovyan”.
- Kubernetes won’t let me set the PVC to be “/”.
- If I set the PVC to be “/home”, then the single user server won’t startup becuase “/jhome/jovyan” does not exist".
- If I set the PVC mount point to be “/home/jovyan”, the permissions are owned by root, so we have permission issues (writing to “~/.local”).
From what I can gather, all the dockerfile code is excuted BEFORE the pvc is mounted into the container, so wherever I mount the PVC, It has to be separate from what docker touches?