错误信息:Unable to attach or mount volumes: unmounted volumes=[xxxx], unattached volumes=[xxxx]: timed out waiting for the condition
1.首先,先检查一下网络问题,节点到对应的nfs存储的网络是否通。
showmount -e nfs服务器ip:/nfsdatadir
2.查看sc资源是否正常
Kubectl describe sc
kubectl describe pv
这篇博客主要讨论了在 Kubernetes 集群中遇到的无法挂载或附加卷的问题。首先,检查网络连接,确保节点可以访问 NFS 存储。接着,通过 `kubectl describe sc` 和 `kubectl describe pv` 命令检查存储类和持久卷的状态。内容涵盖了 Kubernetes 存储故障诊断和解决的基本步骤。
1.首先,先检查一下网络问题,节点到对应的nfs存储的网络是否通。
showmount -e nfs服务器ip:/nfsdatadir
2.查看sc资源是否正常
Kubectl describe sc
kubectl describe pv
1700
1万+
1284
6718

被折叠的 条评论
为什么被折叠?