Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mengzhuo
Created July 12, 2022 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mengzhuo/424ba2d79afa1bcb5bbb57255587db2c to your computer and use it in GitHub Desktop.
Save mengzhuo/424ba2d79afa1bcb5bbb57255587db2c to your computer and use it in GitHub Desktop.
EKS node group create failed
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal kubelet[20691]: I0712 07:35:45.353944 20691 aws.go:1264] Get AWS region from metadata client
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal kubelet[20691]: I0712 07:35:45.354071 20691 aws.go:1309] Zone not specified in configuration file; querying AWS metadata service
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal kubelet[20691]: I0712 07:35:45.356846 20691 aws.go:1349] Building AWS cloudprovider
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal kubelet[20691]: E0712 07:35:45.670856 20691 server.go:294] "Failed to run kubelet" err="failed to run Kubelet: could not init cloud provider \"aws\": error finding instance i-xxxxxxxxxxxxxx: \"error listing AWS instances: \\\"RequestError: send request failed\\\\ncaused by: Post \\\\\\\"https://ec2.us-west-2.amazonaws.com/\\\\\\\": dial tcp: lookup ec2.us-west-2.amazonaws.com on 10.0.0.2:53: no such host\\\"\""
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal systemd[1]: kubelet.service: main process exited, code=exited, status=1/FAILURE
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal systemd[1]: Unit kubelet.service entered failed state.
Jul 12 07:35:45 ip-10-0-27-129.us-west-2.compute.internal systemd[1]: kubelet.service failed.
echo "<1.1.1.1> ec2.us-west-2.amazonaws.com" > /etc/hosts
$ k get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-133-31.us-west-2.compute.internal Ready <none> 3m3s v1.22.9-eks-810597c
ip-10-0-22-108.us-west-2.compute.internal Ready <none> 2m2s v1.22.9-eks-810597c
ip-10-0-24-240.us-west-2.compute.internal Ready <none> 2m33s v1.22.9-eks-810597c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment