简体   繁体   English

尝试创建集群时,coredns容器停留在containercreating状态

[英]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.

相关问题 pod 卡在 AWS EKS 中的 `ContainerCreating` state - pod stuck on `ContainerCreating` state in AWS EKS Pod保持在ContainerCreating状态,并显示“ Failed create pod sand sandbox”消息 - Pods stay in ContainerCreating state with “Failed create pod sandbox” message AWS EMR集群处于启动状态 - AWS EMR cluster stuck in starting state 错误:尝试创建 EKS 集群时获取可用区 - Error: getting availability zones when trying to create EKS cluster elastic/elasticsearch:在 AWS 集群上使用 volumeClaimTemplate 卡在待处理的 state 中的 pod - elastic/elasticsearch: pods stuck in pending state with volumeClaimTemplate on AWS cluster 试图从容器内访问 EKS 集群 - Trying to hit EKS cluster from within container AWS CloudFormation自定义lambda函数停留在创建状态 - AWS CloudFormation custom lambda function stuck in create state EMR 集群卡在调整大小上 - EMR cluster stuck on resizing InvalidDBClusterStateFault:源集群位于 state 中,在全局集群中添加新的 rds 集群时,它对物理复制无效 - InvalidDBClusterStateFault: Source cluster is in a state which is not valid for physical replication when adding a new rds cluster in global cluster AWS ECS容器服务何时更改状态? - When AWS ECS Container service changed state?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM