tips:ceph-on-k0s

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tips:ceph-on-k0s [2024/10/31 08:32] – created igortips:ceph-on-k0s [2024/10/31 08:46] (current) igor
Line 1: Line 1:
 ==== ceph come storage backend ==== ==== ceph come storage backend ====
  
-Su ceph creare un pool per kubernetes (che ho chiamato appunto kubernetes)+Su ceph creare un pool per kubernetes (che ho chiamato appunto ''kubernetes'')
  
 <code> <code>
 ubuntu@joint-mongoose:~$ helm repo add ceph-csi https://ceph.github.io/csi-charts 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 ubuntu@joint-mongoose:~$ helm show values ceph-csi/ceph-csi-rbd > ceph-csi-helm.yaml
-    # kubelet working directory,can be set using `--root-dir` when starting kubelet. 
-    kubeletDir: /var/lib/k0s/kubelet 
 </code> </code>
  
 Editare lo yaml, aggiungendo le informazioni necessarie Editare lo yaml, aggiungendo le informazioni necessarie
-etc... ripiglia il default e fai un diff+ 
 +<code> 
 +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 
 +</code>
  
 Installare il chart: Installare il chart:
Line 27: Line 46:
 https://github.com/ceph/ceph-csi/tree/v3.12.2/examples/rbd https://github.com/ceph/ceph-csi/tree/v3.12.2/examples/rbd
 </code> </code>
 +
 +Se tutto è andato a buon fine si dovrebbe vedere qualcosa di analogo:
 +
 +<code>
 +<code>
 +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            6s
 +pod/ceph-csi-rbd-provisioner-6db975cd5-mbgcd   6/    Running            6s
 +
 +NAME                                     DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
 +daemonset.apps/ceph-csi-rbd-nodeplugin                                    1           <none>          6s
 +
 +NAME                                       READY   UP-TO-DATE   AVAILABLE   AGE
 +deployment.apps/ceph-csi-rbd-provisioner   1/               1           6s
 +
 +NAME                                                 DESIRED   CURRENT   READY   AGE
 +replicaset.apps/ceph-csi-rbd-provisioner-6db975cd5                         6s
 +</code>
 +
  • tips/ceph-on-k0s.1730359948.txt.gz
  • Last modified: 2024/10/31 08:32
  • by igor