Cant connect to a cluster - Error while proxying request: getting credentials: decoding stdout: no kind "ExecCredential" is registered for version "client.authentication.k8s.io/v1alpha1" in scheme "pkg/runtime/scheme.go:100"

ERROR E0509 14:59:47.857012 23316 proxy_server.go:147] Error while proxying request: getting credentials: decoding stdout: no kind “ExecCredential” is registered for version “client.authentication.k8s.io/v1alpha1” in scheme “pkg/runtime/scheme.go:100”

  • name: arn:aws:eks:eu-central-1:…
    user:
    exec:
    apiVersion: client.authentication.k8s.io/v1beta1
    args:
    - --region
    - eu-central-1
    - eks
    - get-token
    - --cluster-name
    - eu-central-1-staging-demo-cluster
    - --output
    - json
    command: aws
    env:
    - name: AWS_PROFILE
    value: xentral-staging
    interactiveMode: IfAvailable
    provideClusterInfo: false

I have latest kubectl aws-cli

You need to recreate the kubeconfig file which would update the version

1 Like