v1.14.0 problem : It seems like the kubelet isn't running or healthy. #75803
The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused. #1893
初始化的 過程中報瞭如上相關錯誤, 由於是剛開始學習k8s,頓時有點矇蔽有點慌
還好在github上找到了這個問題的解決方法
調整下虛擬機內存爲2.5g 重新初始化就成功了
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join 192.168.*.*:6443 --token lrcl5e.kuda40oo4xzb1p0k \
--discovery-token-ca-cert-hash sha256:26c61f0e5fc238ab24eb8f532dbbbeb4ec109c5ea66f2ee941b8303e327a7688