Second part of my JupyterHub deployment in Kubernetes experiment be sure to read Part I.
Last time we got JupyterHub authenticating to LDAP and creating the single user notebooks in Kubernetes containers. As I mentioned in that post one big problem with that deployment was that the notebook files are gone when the pod is deleted so this time I add an NFS volume to the JupyterHub single user containers to persist the notebook data.
Also improved a little bit the deployment and code so to its no longer needed to build a custom image you can just pull two images from my docker hub registry and configure them using a Kubernetes ConfigMap.
All the code in this post is at
Specifically in the
There is multiple options to have persistent data in Kubernetes containers. I chose NFS because its one of the few types ...