==== ceph come storage backend ====
Su ceph creare un pool per kubernetes (che ho chiamato appunto ''kubernetes'')
ubuntu@joint-mongoose:~$ helm repo add ceph-csi https://ceph.github.io/csi-charts
ubuntu@joint-mongoose:~$ helm show values ceph-csi/ceph-csi-rbd > ceph-csi-helm.yaml
Editare lo yaml, aggiungendo le informazioni necessarie
csiConfig:
- clusterID: "5e8d094e-XXXX-YYYY-ZZZZ-1ef33ae5ad04"
monitors:
- "10.44.105.1:6789"
- "10.44.105.2:6789"
- "10.44.105.3:6789"
...
...
storageClass:
clusterID: 5e8d094e-XXX-YYYY-ZZZZ-1ef33ae5ad04
pool: kubernetes
...
...
secret:
userID: kubernetes
userKey: AQA4s....jDPdA==
...
...
kubeletDir: /var/lib/k0s/kubelet
Installare il chart:
ubuntu@joint-mongoose:~$ helm install --namespace "ceph-csi-rbd" "ceph-csi-rbd" ceph-csi/ceph-csi-rbd
NAME: ceph-csi-rbd
LAST DEPLOYED: Wed Oct 30 10:58:07 2024
NAMESPACE: ceph-csi-rbd
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Examples on how to configure a storage class and start using the driver are here:
https://github.com/ceph/ceph-csi/tree/v3.12.2/examples/rbd
Se tutto รจ andato a buon fine si dovrebbe vedere qualcosa di analogo:
ubuntu@joint-mongoose:~$ sudo k0s kubectl -n ceph-csi-rbd get all
NAME READY STATUS RESTARTS AGE
pod/ceph-csi-rbd-nodeplugin-fvkdl 2/2 Running 0 6s
pod/ceph-csi-rbd-provisioner-6db975cd5-mbgcd 6/6 Running 0 6s
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/ceph-csi-rbd-nodeplugin 1 1 1 1 1 6s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/ceph-csi-rbd-provisioner 1/1 1 1 6s
NAME DESIRED CURRENT READY AGE
replicaset.apps/ceph-csi-rbd-provisioner-6db975cd5 1 1 1 6s