密码不对 zzzzzz
novohool opened this issue · comments
novohool commented
执行:
bash kainstall-centos.sh init \
--master oc01.com,oc02.com \
--user root \
--password admin@123 \
--port 22 \
--10years \
--version 1.20.6
报错:
Warning: Permanently added 'oc01.com,172.30.60.74' (ECDSA) to the list of known hosts.
[2021-06-04T18:12:42.251836149+0800]: INFO: [kubeadm init] oc01.com: set kubeadmcfg.yaml succeeded.
[2021-06-04T18:12:42.253314948+0800]: INFO: [kubeadm init] oc01.com: kubeadm init start.
[2021-06-04T18:12:42.261850341+0800]: EXEC: [command] sshpass -p "zzzzzz" ssh -o ConnectTimeout=600 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@oc01.com -p 22 bash -c 'kubeadm init --config=/etc/kubernetes/kubeadmcfg.yaml --upload-certs'
Warning: Permanently added 'oc01.com,172.30.60.74' (ECDSA) to the list of known hosts.
[init] Using Kubernetes version: v1.20.6
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 20.10.7. Latest validated version: 19.03
[WARNING Hostname]: hostname "k8s-master-node1" could not be reached
[WARNING Hostname]: hostname "k8s-master-node1": lookup k8s-master-node1 on 172.24.208.1:53: read udp 172.30.60.74:57720->172.24.208.1:53: i/o timeout
error execution phase preflight: [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=...`
To see the stack trace of this error execute with --v=5 or higher
[2021-06-04T18:13:06.589300224+0800]: ERROR: [kubeadm init] oc01.com: kubeadm init failed.
Lework commented
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
你节点上的etcd目录不为空,请将其删除。
novohool commented
好