Open betatim opened 6 years ago
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
There are two things that can be updated:
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.