++rook deletion cleanup

This commit is contained in:
frankristo 2021-08-02 14:15:42 +02:00
parent c37e26f6aa
commit 3a7de5189e

View file

@ -161,3 +161,21 @@ Especially these:
## Other flux related problems
* The host is not cleared / old /var/lib/rook is persisting
## Cleaning up (after deletion)
If deletion gets stuck, remove finalizers:
```
for CRD in $(kubectl get crd -n rook-ceph | awk '/ceph.rook.io/ {print $1}'); do
kubectl get -n rook-ceph "$CRD" -o name | \
xargs -I {} kubectl patch -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": [null]}}'
done
```
On each server, delete dataDirHostPath and delete Rook disk:
```
rm -rf /var/lib/rook
lvdisplay
lvremove /dev/ceph-*
pvdisplay
pvremove /dev/sd #(ex. /dev/sda)
```