释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要
PVC报错内容
[root@k8s-01 ceph]# kubectl describe pvc data
Name: data
Namespace: default
StorageClass: csi-cephfs-sc
Status: Pending
Volume:
Labels: <none>
Annotations: volume.beta.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
volume.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ExternalProvisioning 12m (x83 over 32m) persistentvolume-controller waiting for a volume to be created, either by external provisioner "cephfs.csi.ceph.com" or manually created by system administrator
排查思路
- 排查csi-cephfs容器是否有启动报错日志
- 手动创建cephfs是否正常
- 检查cephfs和csi版本是否一致
总结
如果pod没有报错,那么基本上90%为csi和ceph版本不一致造成了