kubernetes-the-hard-way-aws
kubernetes-the-hard-way-aws copied to clipboard
Failed to create pod sandbox: invalid CIDR address
Hi community,
I have met the following problem at the last step. Does someone know how to work around it?
Many Thanks Weibo
Administrator:~/environment $ kubectl get pods -l app=nginxNAME READY STATUS RESTARTS AGE
nginx-6799fc88d8-9rqnj 0/1 ContainerCreating 0 7m56s
Administrator:~/environment $ kubectl describe pod nginx-6799fc88d8-9rqnjName: nginx-6799fc88d8-9rqnj
Namespace: default
Priority: 0
Node: ip-10-0-1-22/10.0.1.22
Start Time: Fri, 24 Feb 2023 23:06:49 +0000
Labels: app=nginx
pod-template-hash=6799fc88d8
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: ReplicaSet/nginx-6799fc88d8
Containers:
nginx:
Container ID:
Image: nginx
Image ID:
Port: <none>
Host Port: <none>
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4spk9 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kube-api-access-4spk9:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 8m3s default-scheduler Successfully assigned default/nginx-6799fc88d8-9rqnj to ip-10-0-1-22
Warning FailedCreatePodSandBox 8m3s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "8eb840c025368927a33b29fce47731fbf3113f3ef7d5e614fa4d896cd70bef13": invalid CIDR address:
Warning FailedCreatePodSandBox 7m52s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "6854f4c1599233e6714ee46f4c5778ef34536ec2867cdad0c04d69c061a5ab12": invalid CIDR address:
Warning FailedCreatePodSandBox 7m40s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "090f853a5cd89433b37a9415f4b7d67e95e5b31846aabbe56bac5273240f82d5": invalid CIDR address:
Warning FailedCreatePodSandBox 7m28s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "9f7eb5c84fcafbeee9ab5f663a8fb829ef8e5d5983d3953f484f7f3819832d09": invalid CIDR address: