///
Search
🚊

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"

구글 검색을 통해 확인된 kubectl 1.24.x 버전에서 발생한 오류 입니다.
6920
issues
해결을 하기 위해서 kubectl 버전을 낮춰보겠습니다.
curl -LO https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Shell
복사
aws eks config map 정보를 최신으로 업데이트 합니다.
aws eks update-kubeconfig --region ap-northeast-2 --name dev-eks Added new context arn:aws:eks:ap-northeast-2:144579678262:cluster/dev-eks to /home/ec2-user/.kube/config
Shell
복사
~/.kube/config 정보가 업데이트 되었기 때문에 확인해보겠습니다.
kubectl config get-contexts
Shell
복사