After upgrading EKS to 1.28 kubctl command giving The connection to the server was refused - did you specify the right host or port?

0

HI,

After upgrade of EKS cluster from 1.24 to 1.28 we have noticed The connection to the server was refused - did you specify the right host or port? error. But once in a while if keeps on trying it connect once and again seeing the same error.

Here is the command kubectl get pods -n <namespace> --kubeconfig=<config>

We are not able to find what is the rootcause for the issue, if anyone facing similar issue and had any workaround or resolution will be a great help.

Thanks & Regards, Nag

asked 5 months ago237 views
1 Answer
0

If kubectl does not have the correct credentials to access the cluster, this issue may be encountered.

https://docs.aws.amazon.com/deep-learning-containers/latest/devguide/deep-learning-containers-eks-troubleshooting.html https://dev.to/nielsenjared/how-to-fix-the-amazon-eks-error-did-you-specify-the-right-host-or-port-n2b

cp ~/.kube/eksctl/clusters/<cluster-name> ~/.kube/config

profile picture
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions