跳至內容

My Amazon EKS is unable to communicate with your Kubernetes cluster API server even though it is active

1

My Amazon EKS is unable to communicate with your Kubernetes cluster API server even though it is active. My API server endpoint access set is Public and private. How do I resolve this?

Enter image description here Cannot use kubectl command Enter image description here AWS console and add-ons have an error when connect to Kubernetes cluster API Enter image description here

Enter image description here

已提問 2 年前檢視次數 2371 次
1 個回答
2

Hello,

It is Very regular issue for everyone i will give solution below in easy way: Enter image description here

This is your issue looks likes.

  1. Security Groups: If you're accessing the cluster across a VPC, ensure the control plane security groups allow inbound traffic from the peered VPC on port 443.
  2. Update Your EKS Cluster and Region and check your config file with following commands:

aws eks --region <your region> describe-cluster --name <your cluster name> --query cluster.status

aws eks --region <your region> update-kubeconfig --name <your cluster name>

mv $HOME/.kube/config $HOME/.kube/config.old

kubectl get svc

kubectl get nodes

=> By applying above commands one by one you resolve your issue.

this is the solution for your issue after applying above commands without any error

Enter image description here

Troubleshoot the API server endpoint of an Amazon EKS Cluster: https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html

專家
已回答 2 年前
專家
已審閱 2 年前
  • I have tried your solution and many other ways but still cannot connect to the API server.

    As far as I know, EKS Control Plane is managed by AWS. How can I get support from AWS regarding this issue?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。