Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading the cluster #28

Open
betatim opened this issue Jul 24, 2018 · 1 comment
Open

Upgrading the cluster #28

betatim opened this issue Jul 24, 2018 · 1 comment

Comments

@betatim
Copy link
Member

betatim commented Jul 24, 2018

There are two things that can be updated:

  • kubernetes itself; and
  • JupyterHub

To upgrade JupyterHub edit ohjh/requirements.yaml replacing the version of the jupyerhub chart with the one you want to use from https://jupyterhub.github.io/helm-chart/ Probably the latest development build is a good idea.

@betatim
Copy link
Member Author

betatim commented Jul 24, 2018

Upgrade kubernetes master by clicking in the google cloud console. This takes a moment.

To upgrade the node versions create a new node pool that has the desired version, then remove the old node pool.
Create new node pool

old_pool=default-pool
new_pool=standard-2
gcloud --project=open-humans-jupyterhub container node-pools create $new_pool --zone=us-central1-b --cluster=jhub --disk-size=100 --machine-type=n1-standard-2 --enable-autorepair --num-nodes=2 --enable-autoscaling --min-nodes=2 --max-nodes=10 

Once the new node pool is up, cordon the nodes in the old pool, then delete the hub, proxy and token refresher pods. They should restart and be scheduled on the new node pool.

Once the pods have restarted and you verified that they work drain each node and the ndelete the node pool.

Documentation for each of the steps: http://mybinder-sre.readthedocs.io/en/latest/command_snippets.html#upgrading-kubernetes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant