eks-node-viewer icon indicating copy to clipboard operation
eks-node-viewer copied to clipboard

error on basic usage

Open sahil-lakhwani opened this issue 3 years ago • 4 comments

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

sahil-lakhwani avatar Dec 09 '22 06:12 sahil-lakhwani

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

tzneal avatar Dec 09 '22 13:12 tzneal

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

dirwin517 avatar Dec 09 '22 21:12 dirwin517

@tzneal The version in my kubeconfig is client.authentication.k8s.io/v1alpha1

sahil-lakhwani avatar Dec 12 '22 05:12 sahil-lakhwani

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.

ilyatovbin-pp avatar Dec 12 '22 12:12 ilyatovbin-pp

I added some docs in #18 that should clear this up.

tzneal avatar Dec 14 '22 02:12 tzneal