Open lwasser opened 6 years ago
(1) I've been thinking what the best approach is to providing config examples. I think having a template that shows off all the things will lead to a huge template. Right now thinking maybe the way to go is to create some complete example configs for particular uses cases ("generic workshop hub", "generic class hub", etc). My hope is that this would also make it easier to know "when do I need a custom hub image?". An ambitious but cool tool would be a generate-hub-config
tool that asks you a few questions and then generates as much of the config for you as it can.
(2) We can put the config in the secrets part. In principle you could put all the config into the secret part as values.yaml
and the secret file are merged before applying them. The downside to putting things in the secret part are that it is harder to discuss them on GitHub.
(3) for admin users we should follow https://earthlab-hub-ops.readthedocs.io/en/latest/authentication.html#user-whitelist-and-admin-accounts instead of using the extraConf
escape hatch as I did for the wshub. The HashAuthenticator
line is unrelated to admin users.
(4) should we discuss this in chat and the post a follow up here? I am not quite sure I understand what you want to do. In general the way to "restart" a pod is to delete it. The way kubernetes works is that in our helm chart (configured via values.yaml
) we describe how we want things to be. Kubernetes will then try its hardest to make things that way. So deleting a pod will cause kubernetes to notice that the world isn't as it should be and start that pod again. This means that the way to change things is to change the configuration. This will make kubernetes notice that the world is not as you want it to be, it will then do its best to make the world the way it should be according to the configuration.
If you do want to bump the hub pod I would use kubectl delete pod hub-8649c59b9d-j4vh9 --namespace bootcamp-hub
replacing the name of the pod with what ever it currently is. This is a useful tool to have because there currently is a bug in JupyterHub-on-kubernetes where the hub loses track of what user pods are running. This manifests in people trying to login but never getting a pod. The way to fix it is to restart the hub using the kubectl delete pod ...
command from above. This bug doesn't surface very often though, maybe once a week or every ten days on mybinder.org.
ok @betatim i have a few questions.
values.yaml
- the items are in different order which makes it difficult to know what things i need to add / are missing etc. Can we make a unified template that we use to add things in the right order and hierarchy.c.JupyterHub.authenticator_class = 'hashauthenticator.HashAuthenticator'
or something else for this to work? this part was confusing because each yaml file has things in different orders so it's hard to know what to add where and where hiererarchy is important.This doesn't work. i suspect because the image-puller hash may be wrong? but i'm not sure where that came from.
SO - how do i reset a hub?
What i did:
this deleted all pods! but it did seem like my workspace persisted when i logged in again... is this kosher behaviour??