Clusters on GCE are currently using a gitRepo volume to mount pangeo styling templates for custom jupyterhub login pages. We're having trouble getting this to work on AWS due to lack of write permissions at /usr/local/share/jupyterhub/, and it seems that gitRepo is deprecated according to kubernetes docs -https://kubernetes.io/docs/concepts/storage/volumes/#gitrepo.
I think allowing the hub deployment to have an initcontainer specified by the user (similar to what we allow for single user) is the right thing. Would be <3 if you can open an issue - or even better a PR :)
Clusters on GCE are currently using a
gitRepo
volume to mount pangeo styling templates for custom jupyterhub login pages. We're having trouble getting this to work on AWS due to lack of write permissions at/usr/local/share/jupyterhub/
, and it seems thatgitRepo
is deprecated according to kubernetes docs -https://kubernetes.io/docs/concepts/storage/volumes/#gitrepo.It seems like the recommended approach would be to use
initContainers
under ourhub:
configuration, here is a nice example of that approach: https://gist.github.com/tallclair/849601a16cebeee581ef2be50c351841But... As far as I can tell, this would require adding the
initContainers
configuration option underhub:
: https://zero-to-jupyterhub.readthedocs.io/en/latest/reference.html#hubSo we may want to suggest this change in a new issue here: https://github.com/jupyterhub/zero-to-jupyterhub-k8s
Wanted to post here first to make sure there is not an easier approach that I'm overlooking... @jhamman, @yuvipanda