Skip to content
Snippets Groups Projects
Commit 752d1c5d authored by Alberto Colla's avatar Alberto Colla
Browse files

Add new file

parent 4729b0e3
No related branches found
No related tags found
No related merge requests found
Deploy JupyterHub on Kubernetes
===============================
Let's adapt the official instructions to our k8s cluster:
http://z2jh.jupyter.org/en/latest/setup-helm.html
http://z2jh.jupyter.org/en/latest/setup-jupyterhub.html
Install tiller and Helm on user namespace
-----------------------------------------
Initialization
...............
Follow the first steps in the instructions, until Initialization chapter, where you do::
$ kubectl create serviceaccount tiller
This will create the serviceaccount tiller in your namespace.
Then::
$ helm init --service-account tiller --wait --tiller-namespace $USER_NS
where $USER_NS is your namespace.
Continue with the setup::
$ kubectl patch deployment tiller-deploy --namespace=$USER_NS --type=json --patch='[{"op": "add", "path": "/spec/template/spec/containers/0/command", "value": ["/tiller", "--listen=localhost:44134"]}]'
Check that your namespace needs to have the rolebinding **tiller**. On GARR container platform this is automatically configured for all user namespaces::
$ kubectl get rolebinding
...
NAME AGE
tiller-binding 143m
Let's query helm. Note that you have to specify your username in every helm command::
$ helm version --tiller-namespace $USER_NS
Client: &version.Version{SemVer:"v2.13.0", GitCommit:"79d07943b03aea2b76c12644b4b54733bc5958d6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.0", GitCommit:"79d07943b03aea2b76c12644b4b54733bc5958d6", GitTreeState:"clean"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment