preface
An error is reported when adding a k8s-node using kubedm join
, as follows:
error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition
Solution:
1 reset the cluster configuration of this machine
kubeadm reset -f
2 stop service
sudo tee /tmp/test.sh <<-'EOF'
systemctl stop kubelet kube-proxy docker containerd
ps -ef | grep containerd | awk '{print $2}' | xargs -I {} kill -9 {}
rm -rf /etc/systemd/system/kube-proxy.service
rm -rf /etc/systemd/system/kubelet.service
systemctl stop zabbix-agent.service
systemctl disable zabbix-agent.service
systemctl stop node_exporter_custom.service
systemctl disable node_exporter_custom.service
systemctl reset-failed
rm -rf /usr/local/bin/kube*
EOF
chmod +x /tmp/test.sh && bash /tmp/test.sh
3 start docker
systemctl start docker
4 join the cluster
Run kubedm token create -- print-join-command
on Master
to get token
information
Then execute the following command on the node
node to rejoin the k8s cluster
# k8s-node
kubeadm join 172.18.12.23:6443 --token okt9c2.edidk4m2yfim31su \
--discovery-token-ca-cert-hash sha256:0a6cb9f97106782102840e142eda33dc3dc071aff1af436f90d43699acdc3751
Success information
5 verify on k8s-master
kubectl get node
kubectl get pod -A
Read More:
- Failed to Initialize Error: error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR Port-6443]
- Linux Execution Error “service mysqld start“error while loading shared libraries: libaio.so.1“
- [Solved] KingbaseES V8R3 Error: cluster.log ERROR: md5 authentication failed
- [Solved] zookeeper Cluster error: Error: JAVA_HOME is not set and java could not be found in PATH.
- [Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server
- [Solved] RHEL 7 installs Oracle RAC 11.2.0.4, executes root.sh error ohasd: failed to start
- Windows command execution bypass
- CentOS7 Failed to start LSB: Bring up/down networking [How to Solve]
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- Failed to start firewalld.service: Unit is masked [How to Solve]
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- The solution to the crash loop back off error of coredns in k8s deployment
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- Apache Cannot Start: SSL Library Error: -8181 Certificate has expired
- [Solved] Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to
- Linux First Install oracle Start Error [How to Solve]
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking