系统 | Centos7 |
---|---|
k8s版本 | v.1.28.0 (自签证书) |
kubesphere版本 | v3.4.0 |
问题:
Output: mount.nfs: mounting 192.168.2.21:/data/kubesphere-monitoring-system-prometheus-k8s-db-prometheus-k8s-0-pvc-c69f1491-3980-4cdf-abcb-6e05843f0b9b failed, reason given by server: No such file or directory
排查:
nfs服务正常,strongclass申领的pv也正常,去nfs服务器检查/data/kubesphere-monitoring-system-prometheus-k8s-db-prometheus-k8s-0-pvc-c69f1491-3980-4cdf-abcb-6e05843f0b9b文件发现不存在
解决:
1.在nfs服务器上手动创建需要挂载的目录
mkdir -p /data/kubesphere-monitoring-system-prometheus-k8s-db-prometheus-k8s-0-pvc-c69f1491-3980-4cdf-abcb-6e05843f0b9b
2.删除pod,等待重建
kubectl delete pod prometheus-k8s-0 -n kubesphere-system