k8s:v1.22.12
kubesphere版本:v3.3
完整錯(cuò)誤信息:
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
最終發(fā)現(xiàn)是nfs服務(wù)未打開端口:
# nfs本機(jī)掃描結(jié)果:
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集群機(jī)器掃描結(jié)果:
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服務(wù)器開啟端口(之前出現(xiàn)一次重裝kubesphere不能解決直接重裝系統(tǒng)…特此留下解決方案)文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-744595.html
ufw allow 2049
20230724145740補(bǔ)充:好像當(dāng)時(shí)有些服務(wù)因?yàn)閗s關(guān)閉防火墻導(dǎo)致外部無(wú)法訪問(wèn),所以手動(dòng)開啟了防火墻,因?yàn)榇饲暗膎fs服務(wù)沒(méi)有在外部使用,所以防火墻沒(méi)有記錄它,導(dǎo)致后來(lái)添加其他集群的設(shè)備后,因?yàn)榉阑饓?dòng)了,所以訪問(wèn)不了這個(gè)設(shè)備的nfs,最后導(dǎo)致這些問(wèn)題。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-744595.html
到了這里,關(guān)于Conmi的正確答案——Unable to attach or mount volumes: unmounted volum...timed out waiting for the condition的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!