[英]coredns container stuck in containercreating state when trying to create a cluster
I'm trying to create a Kubernetes cluster on AWS. 我正在尝试在AWS上创建Kubernetes集群。 I've installed all the dependencies and done the kubeadm init.
我已经安装了所有依赖项并完成了kubeadm初始化。 kubeadm init --apiserver-advertise-address= --pod-network-cidr=192.168.0.0/16 I even got the command to join the node to the cluster.
kubeadm init --apiserver-advertise-address = --pod-network-cidr = 192.168.0.0 / 16我什至得到了将节点加入集群的命令。 I have two problems: 1. I get nodes in the notReady status when i do kubectl get nodes 1 why is that so?
我有两个问题:1.当我执行kubectl获取节点1时,我的节点处于notReady状态1为什么会这样? 2. Two of my codedns pods are stuck in containercreating state 2 Why is this happening?
2.我的两个Codedns Pod处于容器创建状态2为什么会发生这种情况?
According to the screenshots attached, I assume that you didn't deploy any CNI network into your cluster; 根据所附的屏幕快照,我假设您没有在集群中部署任何CNI网络 。 as a result, coredns Pods are in failed status.
结果,coredns Pod处于失败状态。
I recommend installing one of the Pod network addons from the link above. 我建议从上面的链接安装Pod网络插件之一。 In case of any re-occurred issue, try to bootstrap cluster from scratch.
如果出现任何再次出现的问题,请尝试从头开始引导群集。 You can find a good article here with detailed instruction for
kubeadm
installation procedure published by @VKR. 您可以在这里找到一篇不错的文章,其中包含
kubeadm
发布的kubeadm安装过程的详细说明。
In case of any errors during the installation, post them below this answer. 如果在安装过程中发生任何错误,请将其发布在此答案下方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.