JupyterHub on Kubernetes (on-premises) †[edit]
Repository †[edit]
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
helm repo update
helm repo list
helm upgrade --cleanup-on-fail --install jhub jupyterhub/jupyterhub --namespace k8sns --create-namespace --version=1.1.3 --values config.yaml
- jhub : release name
- k8sns : namespace
helm upgrade --cleanup-on-fail jhub jupyterhub/jupyterhub --namespace k8sns --version=1.1.3 --values config.yaml
config.yaml †[edit]
- config.yaml は実行する度に使設定されるみたい.
- 削除する設定は明確に書く!
- 以下を名前を変えて2セット作る (Hub用とnotebook用)
- helm で先にPODをインストールし,その後にVolumeを作って,helm でPODをアップグレードする?(namespace が決まらないので)
helm upgrade --cleanup-on-fail --install jhub jupyterhub/jupyterhub --namespace k8sns --create-namespace --version=1.1.3 --values config.yaml
helm upgrade --cleanup-on-fail jhub jupyterhub/jupyterhub -n k8sns --version=1.1.3 --values config.yaml^C
StorageClass †[edit]
- kubectl -n (namespace) create -f sc-lv.yaml
PersistentVolume †[edit]
PersistentVolumeClaim †[edit]
- kube -n (namespace) delete [sc, pv, pvc] (name)
- kube -n (namespace) delete [sc, pv, pvc] --all