after setting up my cluster tried to connect to my cluster. test everything is fine. but getting below error.
command i executed:
kubectl get svc
Error i get:
Unable to connect to the server: getting credentials: decoding stdout: no kind "ExecCredential" is registered for version "client.authentication.k8s.io/v1alpha1" in scheme "pkg/client/auth/exec/exec.go:62"
2
Answers
Related to this
https://github.com/kubernetes/kubectl/issues/1210.
https://github.com/aws/aws-cli/issues/6920.
Try updating your
aws-cli
andkubectl
.This issue occured for me after I upgraded my local Docker Desktop to latest version 4.12.0 (85629). As this version was causing problems while running kubctl commands to update my feature branch Hoard image, I did following steps to resolve them.
confirmed that my version is aws-cli/2.8.3 Python/3.9.11 Windows/10 exe/AMD64 prompt/off
aws –region us-east-1 eks update-kubeconfig –name dma-dmpreguse1 –alias dmpreguse1 <change as per your need
Now I am able to update my required changes.