Skip to content
Snippets Groups Projects

Titre

Install the helm version (3.5.0) of Fedora-CoreOS-35 without reboot

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

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:

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

helm version
version.BuildInfo{Version:"v3.5.0", GitCommit:"32c22239423b3b4ba6706d450bd044baffdcf9e6", GitTreeState:"clean", GoVersion:"go1.15.6"}

cinder volume

The creation of volumes required 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

kubectl apply -f sc-default.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                  62s
csi-sc-cinderplugin-dirty1 (default)   cinder.csi.openstack.org   Delete          Immediate           false                  24h
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                  99s
csi-sc-cinderplugin-dirty1 (default)   cinder.csi.openstack.org   Delete          Immediate           false                  24h

jupyterhub installation

 helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
 Fedora-CoreOS 35 + Bobcat
 helm upgrade --cleanup-on-fail --install my-jupyter jupyterhub/jupyterhub --namespace jhub --create-namespace --version 3.3.3
 Fedora-CoreOS 38 + Caracal
 helm upgrade --cleanup-on-fail --install my-jupyter jupyterhub/jupyterhub --namespace jhub --create-namespace --version 3.3.8

Volume node affinity conflict

kubectl label nodes node-name topology.cinder.csi.openstack.org/zone=nova --overwrite

Check result

kubectl get nodes --show-labels -n your-name-space

Container prefix or path issue: example cinder-csi-plugin in Caracal

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

pvc hub-db-dir issue: helm upgrade without hub-db-dir creation

kubectl -n jhub apply -f pvc-hub-db-dir-default.yml