K8s 初始化报错(/var/lib/etcd is not empty)
1. 问题描述在使用kubeadm init出现报错[ERROR DirAvailable–var-lib-etcd]: /var/lib/etcd is not empty)[preflight] Some fatal errors occurred:[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[preflight]
·
1. 问题描述
在使用kubeadm init出现报错[ERROR DirAvailable–var-lib-etcd]: /var/lib/etcd is not empty)
[preflight] Some fatal errors occurred:
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
error execution phase preflight
2. 解决问题和原由
之所有出现/var/lib/etcd报错是因为改目录之前初始化已经生成了该目录,是需要将其删除即可
rm -rf /var/lib/etcd
3. 重新进行初始化
更多推荐
已为社区贡献1条内容
所有评论(0)