Create Cluster: All Nodes Reporting NotReady
Hi! I'm trying to create a new EKS cluster via eksctl. My environment:
$ uname -a
Darwin nomad.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
$ eksctl version
2018-10-08T14:16:31-04:00 [ℹ] versionInfo = map[string]string{"builtAt":"2018-10-05T15:48:25Z", "gitCommit":"1aec1aa78cd47610d53f0340e5565a3f79fa3998", "gitTag":"0.1.5"}
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.8", GitCommit:"7eab6a49736cc7b01869a15f9f05dc5b49efb9fc", GitTreeState:"clean", BuildDate:"2018-09-14T16:06:30Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.3-eks", GitCommit:"58c199a59046dbf0a13a387d3491a39213be53df", GitTreeState:"clean", BuildDate:"2018-09-21T21:00:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
And the creation process:
$ eksctl create cluster --name "build" --nodes 2 --node-type t3.large --region us-east-1 --zones us-east-1c,us-east-1d,us-east-1f
2018-10-08T13:46:03-04:00 [ℹ] using "ami-0440e4f6b9713faf6" for nodes
2018-10-08T13:46:03-04:00 [ℹ] creating EKS cluster "build" in "us-east-1" region
2018-10-08T13:46:03-04:00 [ℹ] will create 2 separate CloudFormation stacks for cluster itself and the initial nodegroup
2018-10-08T13:46:03-04:00 [ℹ] if you encounter any issues, check CloudFormation console or try 'eksctl utils describe-stacks --region=us-east-1 --name=build'
2018-10-08T13:46:03-04:00 [ℹ] creating cluster stack "eksctl-build-cluster"
2018-10-08T13:58:23-04:00 [ℹ] creating nodegroup stack "eksctl-build-nodegroup-0"
2018-10-08T14:01:58-04:00 [✔] all EKS cluster resource for "build" had been created
2018-10-08T14:01:58-04:00 [✔] saved kubeconfig as "/Users/mike/.kube/config"
2018-10-08T14:01:59-04:00 [ℹ] the cluster has 0 nodes
2018-10-08T14:01:59-04:00 [ℹ] waiting for at least 2 nodes to become ready
At this point, the command hangs, until the timeout is reached. The stacks get created just fine, and the nodes spin up, but they never reach a state where they report Ready to the control plane. If I authenticate with the control plane and introspect the nodes:
$ kubectl get nodes
ip-192-168-230-54.ec2.internal NotReady <none> 16m v1.10.3
ip-192-168-75-229.ec2.internal NotReady <none> 16m v1.10.3
And the truncated output from describing an individual node:
$ kubectl describe node/ip-192-168-230-54.ec2.internal
...
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
OutOfDisk False Mon, 08 Oct 2018 14:19:02 -0400 Mon, 08 Oct 2018 14:02:01 -0400 KubeletHasSufficientDisk kubelet has sufficient disk space available
MemoryPressure False Mon, 08 Oct 2018 14:19:02 -0400 Mon, 08 Oct 2018 14:02:01 -0400 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Mon, 08 Oct 2018 14:19:02 -0400 Mon, 08 Oct 2018 14:02:01 -0400 KubeletHasNoDiskPressure kubelet has no disk pressure
PIDPressure False Mon, 08 Oct 2018 14:19:02 -0400 Mon, 08 Oct 2018 14:02:01 -0400 KubeletHasSufficientPID kubelet has sufficient PID available
Ready False Mon, 08 Oct 2018 14:19:02 -0400 Mon, 08 Oct 2018 14:02:01 -0400 KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
...
I've waited up to 60 minutes in this state, just to confirm that its not a slow kubelet spinup process. No avail. I appreciate any help I can get in diagnosing this. Thanks!
I'm able to reproduce this, thanks for reporting it!
I've ran another test without --node-type=t3.large, and this didn't happen, I used this command:
eksctl create cluster --nodes 2 --region us-east-1 --zones us-east-1c,us-east-1d,us-east-1f
Default node type is m5.large. Mind you that even with that, you only get a few pods per node (29, if my memory server me well), so I really don't see a good use for t3.large to be honest, as it's actually a much smaller machine. Despite, I'll continue debugging this issue.
Ok, I had a feeling it was due to the node type, it being pretty new and all. This is for a CI build cluster, so I like the cost profile behind burstable instances. But not a big deal, we can use m5.large instances until this is debugged. Thanks!
@mhoc yes, t3's turned out to be very new (I confused it with t2, of course). #244 will fix this, we shall cut a release once the PR gets merged (probably tomorrow AM BST).
Release had been postponed until #250 gets merged (most likely tomorrow AM BST).