Difference between revisions of "Rook Kubernetes"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 24: Line 24:
  
 
```
 
```
 +
kubectl -n rook-ceph describe pod csi-cephfsplugin-w7slh
 +
 
for i in /var/lib/kubelet/pods /var/lib/kubelet/plugins_registry; do
 
for i in /var/lib/kubelet/pods /var/lib/kubelet/plugins_registry; do
 
echo $i
 
echo $i

Revision as of 22:17, 19 June 2021

git clone --single-branch --branch master https://github.com/rook/rook.git
cd rook/cluster/examples/kubernetes/ceph
kubectl create -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml

Delete

kubectl api-resources --verbs=list --namespaced -o name \
>   | xargs -n 1 kubectl get --show-kind --ignore-not-found -n rook-ceph


kubectl -n rook-ceph patch cephclusters.ceph.rook.io rook-ceph --type merge -p '{"metadata":{"finalizers": [null]}}'
kubectl delete cephcluster.ceph.rook.io/rook-ceph -n rook-ceph
kubectl -n rook-ceph describe pod csi-cephfsplugin-w7slh

for i in /var/lib/kubelet/pods /var/lib/kubelet/plugins_registry; do
echo $i
mkdir $i
chmod 0777 $i
done