Skip to content
Snippets Groups Projects
kube-jupyterhub.md 3.44 KiB
Newer Older
# Titre
Install the helm version (3.5.0) of Fedora-CoreOS-35 without reboot
```bash
curl https://get.helm.sh/helm-v3.5.0-linux-amd64.tar.gz --output helm-v3.5.0-linux-amd64.tar.gz
tar -zxvf helm-v3.5.0-linux-amd64.tar.gz
mkdir -p /root/bin
cp linux-amd64/helm /root/bin
```
Install the helm version (3.11.0) of Fedora-CoreOS-38 without reboot
```bash
curl https://get.helm.sh/helm-v3.11.0-linux-amd64.tar.gz --output helm-v3.11.0-linux-amd64.tar.gz
tar -zxvf helm-v3.11.0-linux-amd64.tar.gz
mkdir -p /root/bin
cp linux-amd64/helm /root/bin
```

### Check installation on Fedora-CoreOS-35
The default helm installed by magnum:
```bash
echo $PATH
/root/.local/bin:/root/bin:/srv/magnum/bin:/srv/magnum/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin

/srv/magnum/bin/helm version
version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}
```

The new installed helm in /root/bin
```bash
helm version
version.BuildInfo{Version:"v3.5.0", GitCommit:"32c22239423b3b4ba6706d450bd044baffdcf9e6", GitTreeState:"clean", GoVersion:"go1.15.6"}
```
### Cinder volume
The creation of volumes triggered by a kubertenes app can achieved
if csi-cinder-controllerplugin + csi-cinder-nodeplugin pods are running
and if a default storage class is created `storageclass.yaml`
```bash
kubectl apply -f storageclass.yaml
    storageclass.storage.k8s.io/csi-sc-cinderplugin created
kubectl get storageclass
NAME                  PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
csi-sc-cinderplugin   cinder.csi.openstack.org   Delete          Immediate           false                  3s

kubectl patch storageclass csi-sc-cinderplugin -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
    storageclass.storage.k8s.io/csi-sc-cinderplugin patched
    
 kubectl get storageclass
NAME                            PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
csi-sc-cinderplugin (default)   cinder.csi.openstack.org   Delete          Immediate           false                  63s

```
### jupyterhub installation
```bash
 helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
 Fedora-CoreOS 35 + Bobcat or Fedora-CoreOS 38 + Caracal
 helm upgrade --cleanup-on-fail --install my-jupyter jupyterhub/jupyterhub --namespace jhub --create-namespace --version 3.3.7
 ```
 ### jupyterhub installation with local users, pre-installed python packages for data science and https (`config-datascience.yaml`)
 ```bash
helm upgrade --cleanup-on-fail --install my-jupyter jupyterhub/jupyterhub --namespace jhub --create-namespace --version 3.3.7 -f config-datascience.yaml
  ```


### Volume node affinity conflict
```bash
kubectl label nodes node-name topology.cinder.csi.openstack.org/zone=nova --overwrite
```
Check result
```bash
kubectl get nodes --show-labels -n your-name-space
### Container prefix or path issue: example cinder-csi-plugin in Caracal
```bash
kubectl -n kube-system delete -f /srv/magnum/kubernetes/manifests/cinder-csi.yaml
edit cinder-csi.yaml and change docker image path to : docker.io/k8scloudprovider/cinder-csi-plugin:v1.23.0
kubectl -n kube-system apply -f /srv/magnum/kubernetes/manifests/cinder-csi.yaml
```
### PersistentVolumeClaim named hub-db-dir issue: helm upgrade without hub-db-dir creation
```bash
kubectl -n jhub apply -f pvc-hub-db-dir-default.yml
Nicolas Bouche's avatar
Nicolas Bouche committed
```