eks-node-viewer
eks-node-viewer copied to clipboard
error on basic usage
I installed using go install github.com/awslabs/eks-node-viewer/cmd/eks-node-viewer@latest
$ eks-node-viewer
2022/12/09 11:43:21 creating client, exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
Credentials are correctly configured
In your kubeconfig, what version is set for apiVersion?
- name: arn:aws:eks:us-west-2:12345678:cluster/your-cluster-name
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
Im getting the same error
- name: dev.cluster.lab
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- token
- -i
- eks-dev-cluster
command: aws-iam-authenticator
env: null
provideClusterInfo: false
EKS 1.21
Kubectl Client Version: v1.21.4
Server Version: 1.21+
aws cli version: aws-cli/2.1.31 Python/3.8.8 Darwin/22.1.0 exe/x86_64 prompt/off
OSX Ventura 13.0.1
go version go1.19.4 darwin/amd64
@tzneal The version in my kubeconfig is client.authentication.k8s.io/v1alpha1
replace all v1alpha1 to v1beta1 in kubeconfig, then make sure your kubectl version supports it. I updated mine from 1.21.x to 1.23.15 and the issue went away.
I added some docs in #18 that should clear this up.