Instances failed to join the kubernetes cluster

0

I am attempting to setup an EKS cluster, and have followed the documentation as much as possible. The cluster endpoint is both private and public, and my worker nodes will be in a private subnet.

I have a public subnet where I have a jumphost to connect to the worker nodes in the private subnet if I have to for debugging.

When I attempt to create a node group, the instance boots but fails to connect with the message "Instances failed to join the kubernetes cluster" in the UI. There is no more information anywhere, so I logged into the worker node from the jumphost, and this is what I see

Jul 14 10:06:31 ip-10-0-60-142 kubelet: F0714 10:06:31.010038 4491 server.go:273] failed to run Kubelet: could not init cloud provider "aws": error finding instance i-0e50417a226393598: "error listing AWS instances: "RequestError: send request failedncaused by: Post https://ec2.us-west-2.amazonaws.com/: dial tcp 54.240.249.157:443: i/o timeout""
Jul 14 10:06:31 ip-10-0-60-142 systemd: kubelet.service: main process exited, code=exited, status=255/n/a
Jul 14 10:06:31 ip-10-0-60-142 systemd: Unit kubelet.service entered failed state.
Jul 14 10:06:31 ip-10-0-60-142 systemd: kubelet.service failed.
Jul 14 10:06:36 ip-10-0-60-142 systemd: kubelet.service holdoff time over, scheduling restart.

From the message it looks like the kubelet is not able to connect to what seems to be public IP address for the API endpoint. Why should it connect to a public IP at all when I have enabled private access? What else is going wrong here? Can somebody from AWS help?

tlx
질문됨 4년 전1095회 조회
1개 답변
0

Changing the global STS to valid in all AWS regions seems to work.
Above can be done at https://console.aws.amazon.com/iam/home#/account_settings

sanjit
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠