k8s init问题
v1.14.0 problem : It seems like the kubelet isn't running or healthy. #75803The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: d..
·
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
更多推荐
已为社区贡献1条内容
所有评论(0)