使用kubeadm安装
kubeadm init --image-repository registry.aliyuncs.com/google_containers --node-name VM-10-13-centos --pod-network-cidr 10.244.0.0/16 --apiserver-bind-port 16443
尝试几次都出现超时问题
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.18" in namespace kube-system with the configuration for the kubelets in the cluster
[kubelet-check] Initial timeout of 40s passed.
error execution phase upload-config/kubelet: Error writing Crisocket information for the control-plane node: timed out waiting for the condition
To see the stack trace of this error execute with --v=5 or higher
检查系统设置,iptables规则等
kubeadm reset
sysctl --system