Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:1.17.2
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: Centos 7
CNI and version: n/a
CRI and version: n/a
Trying to create an HA k8s cluster following the blog
Keeps failing. Here is what I have done:
- created an HAPROXY server and LB to master node 0
- change docker to run under systemd
- swapoff -a
- setenforce 0
- modprobe br_netfilter
- echo ‘1’ > /proc/sys/net/bridge/bridge-nf-call-iptables
- turn off firewalld
- yum install kubelet kubeadm kubectl
cat < /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
vm.swappiness = 0
EOF
sysctl --system
-
prepare the kubeadm.yaml
-
kubeadm init --config kubeadm.yml --upload-certs
keeps failing at
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory “/etc/kubernetes/manifests”. This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.Unfortunately, an error has occurred:
timed out waiting for the conditionThis error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- ‘systemctl status kubelet’
- ‘journalctl -xeu kubelet’
Systemd log shows:
Jan 30 20:03:32 kaizhang4c.mylabserver.com kubelet[16465]: E0130 20:03:32.627412 16465 kubelet.go:2263] node “kaizhang4c.mylabserver.com” not found
why it can’t find local node? Thank you so much for your help!