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

feita há 5 meses267 visualizações
1 Resposta
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
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas