Binding a PersistentVolumeClaim to a Pod resource
Bind a PersistentVolumeClaim to a Pod resource as a Ceph File Systems (CephFS).
Procedure
What to do next
Verify that the pods are bound and data is being written to the CephFS volume.
- Verify that the pods are bound, by using the kubectl get pods command.
For example,
$ kubectl get pods NAME READY STATUS RESTARTS AGE cephfs-pod-fuse 1/1 Running 0 5h29m cephfs-pod-kernel 1/1 Running 0 4s
- Verify that the data is writing to the CephFS volume.
ceph fs subvolume infoFor example,[root@host01 ceph]# ceph fs subvolume info cephfs csi-vol-ab1237a9-1fbd-43c1-8b41-0dfd9dc8dee9 csi { "atime": "2025-01-10 14:05:36", "bytes_pcent": "9.49", "bytes_quota": 10737418240, "bytes_used": 1019084800, "created_at": "2025-01-10 14:05:36", "ctime": "2025-01-10 14:14:54", "data_pool": "cephfs.cephfs.data", "earmark": "", "features": [ "snapshot-clone", "snapshot-autoprotect", "snapshot-retention" ], "flavor": 2, "gid": 0, "mode": 16877, "mon_addrs": [ "10.0.67.29:6789", "10.0.65.240:6789", "10.0.65.252:6789" ], "mtime": "2025-01-10 14:14:54", "path": "/volumes/csi/csi-vol-ab1237a9-1fbd-43c1-8b41-0dfd9dc8dee9/36070c5a-208e-4bc5-94f9-f24fe0afc71a", "pool_namespace": "", "state": "complete", "type": "subvolume", "uid": 0 }