k8s:v1.22.12
kubesphere版本:v3.3
完整错误信息:
Unable to attach or mount volumes: unmounted volumes=[prometheus-k8s-db], unattached volumes=[kube-api-access-g42q8 tls-assets prometheus-k8s-db web-config config config-out prometheus-k8s-rulefiles-0]: timed out waiting for the condition
最终发现是nfs服务未打开端口:
# nfs本机扫描结果:
Host is up (0.00010s latency).
PORT STATE SERVICE
2049/tcp open nfs
Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
# k8s集群机器扫描结果:
Host is up (0.00030s latency).
PORT STATE SERVICE
2049/tcp filtered nfs
MAC Address: 00:0C:29:B1:C6:72 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 0.40 seconds
解决方案:在nfs服务器开启端口(之前出现一次重装kubesphere不能解决直接重装系统…特此留下解决方案)文章来源:https://www.toymoban.com/news/detail-744595.html
ufw allow 2049
20230724145740补充:好像当时有些服务因为ks关闭防火墙导致外部无法访问,所以手动开启了防火墙,因为此前的nfs服务没有在外部使用,所以防火墙没有记录它,导致后来添加其他集群的设备后,因为防火墙启动了,所以访问不了这个设备的nfs,最后导致这些问题。文章来源地址https://www.toymoban.com/news/detail-744595.html
到了这里,关于Conmi的正确答案——Unable to attach or mount volumes: unmounted volum...timed out waiting for the condition的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!