Timekiller:
Hello everyone. I’m trying to deploy a k8s cluster using kubeadm
with containerd
as the container runtime on an AWS EC2 instance with Amazon Linux 2 and coming across the following problem:
I’ve been following along through this demo lesson https://kodekloud.com/topic/demo-deployment-with-kubeadm/ with the documentation here: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
Everything has been going well so far but I seem to be stuck on my CoreDNS pods being in ContainerCreating
state:
NAME READY STATUS RESTARTS AGE
coredns-6d4b75cb6d-27hwl 0/1 ContainerCreating 0 19m
coredns-6d4b75cb6d-rdst6 0/1 ContainerCreating 0 19m
Looking at the event logs it seems like this issue is failed to find network info for sandbox which looks similar to what @Abdullah Naeem is experiencing.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 21m default-scheduler Successfully assigned kube-system/coredns-6d4b75cb6d-27hwl to ip-172-31-28-82.ec2.internal
Warning FailedCreatePodSandBox 20m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "ccd66db5747fbb1b0d170c979f4dece6b18a024dbe0b464c5a7c684aeb4bf01c": failed to find network info for sandbox "ccd66db5747fbb1b0d170c979f4dece6b18a024dbe0b464c5a7c684aeb4bf01c"
Warning FailedCreatePodSandBox 57s (x81 over 18m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "e14e36d7fbd228f38c12415872d16b800a30458c089c89ff77f40066aa6e94ef": failed to find network info for sandbox "e14e36d7fbd228f38c12415872d16b800a30458c089c89ff77f40066aa6e94ef"
Any clues? I can provide an exact log of every single step/command taken to reach this point, as I’m provisioning the VM with IaC tools - rebuilding the VM always results in this same result, so I’m pretty sure I missed something somewhere.