Question:
I have a cluster in AWS created by these instructions.
Then I tried to add nodes in this cluster according to this documentation.
It seems that the nodes fail to be created with vpc-cni
and coredns
health issue type: insufficientNumberOfReplicas The add-on is unhealthy because it doesn't have the desired number of replicas.
The status of the pods kubectl get pods -n kube-system
:
1 2 3 4 5 6 7 8 9 10 |
NAME READY STATUS RESTARTS AGE aws-node-9cwkd 0/1 CrashLoopBackOff 13 42m aws-node-h4qjt 0/1 CrashLoopBackOff 13 42m aws-node-jrn5x 0/1 CrashLoopBackOff 13 43m coredns-745979c988-25fcc 0/1 Pending 0 120m coredns-745979c988-qvh7h 0/1 Pending 0 120m kube-proxy-2bmlq 1/1 Running 0 42m kube-proxy-hjcrw 1/1 Running 0 43m kube-proxy-j9r9n 1/1 Running 0 42m |
The logs of aws-node-9cwkd
pod:
1 2 3 4 5 6 7 8 9 10 |
{"level":"info","ts":"2021-11-30T14:11:14.156Z","caller":"entrypoint.sh","msg":"Validating env variables ..."} {"level":"info","ts":"2021-11-30T14:11:14.157Z","caller":"entrypoint.sh","msg":"Install CNI binaries.."} {"level":"info","ts":"2021-11-30T14:11:14.177Z","caller":"entrypoint.sh","msg":"Starting IPAM daemon in the background ... "} {"level":"info","ts":"2021-11-30T14:11:14.179Z","caller":"entrypoint.sh","msg":"Checking for IPAM connectivity ... "} {"level":"info","ts":"2021-11-30T14:11:16.189Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"} {"level":"info","ts":"2021-11-30T14:11:18.198Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"} {"level":"info","ts":"2021-11-30T14:11:20.205Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"} {"level":"info","ts":"2021-11-30T14:11:22.215Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"} {"level":"info","ts":"2021-11-30T14:11:24.226Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"} |
By running the command kubectl describe pod aws-node-h4qjt -n kube-system
the following error occurs:
1 2 |
Readiness probe failed: {"level":"info","ts":"2021-11-30T14:11:07.145Z","caller":"/usr/local/go/src/runtime/proc.go:225","msg":"timeout: failed to connect service \":50051\" within 5s"} |
Any help would be highly appreciated in order to create nodes in the cluster successfully.
Answer:
I used eksctl command line tool with --nodes
flag and everything was created successfully as expected.
1 2 3 4 5 |
eksctl create cluster --name cluster-name \ --nodes 3 \ --node-type=t3.large \ --region=eu-west-1 |