Member-only story
Ceph: Let’s delete everything, Part 2
Deleting Ceph File Systems
We deployed a Ceph cluster and created file systems. Those steps are described in these two articles.
Roughly speaking, we will reverse what we did in the second article.
Disconnecting Clients
As shown below, the Ceph dashboard shows list of connected clients for each file system. We have two clients: one for Linux mount and one for Kubernetes. We can disconnect clients using clicking Evict button.
Here, we will connect from client sides. For Linux mount, we just unmount the ceph fs system.
sudo umount /mnt/ceph-fs
The client from the Kubernetes cluster is a pod. We delete the pod using kubectl command.
kubectl delete pod test-pod-with-fs-pvc
We created a storage class that is connected to cephfs-k8s file system. So we will also delete the storage class.