Passer au contenu

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

demandé il y a 2 ans2,4 k vues
1 réponse
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

EXPERT
répondu il y a 2 ans
EXPERT
vérifié il y a 2 ans
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.