Git Product home page Git Product logo

Comments (4)

dmitry-mightydevops avatar dmitry-mightydevops commented on May 24, 2024 1

and don't forget to do after you update aws cli

✗  aws eks --region us-east-1 update-kubeconfig --name project-staging-eks
Updated context arn:aws:eks:us-east-1:xxxx:cluster/project-staging-eks in /home/dmitry/.kube/config

from kubectl-ice.

NimbleArchitect avatar NimbleArchitect commented on May 24, 2024

that error happens when the code is unable to create a clientset config in memory, three questions spring to mind

  • what version of k8s are you running?
  • do you have anything special of different in your kube config?
  • do you have metrics set up and configured correctly?

from kubectl-ice.

dmitry-mightydevops avatar dmitry-mightydevops commented on May 24, 2024

so I just faced the same issue by updating kubectl. It seems it is related:

✗  kubectl version                          
Client Version: version.Info{Major:"1", Minor:"22+", GitVersion:"v1.22.6-eks-7d68063", GitCommit:"f24e667e49fb137336f7b064dba897beed639bad", GitTreeState:"clean", BuildDate:"2022-02-23T19:32:14Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22+", GitVersion:"v1.22.9-eks-a64ea69", GitCommit:"540410f9a2e24b7a2a870ebfacb3212744b5f878", GitTreeState:"clean", BuildDate:"2022-05-12T19:15:31Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}

➜ k ice cpu --match 'used>0' --sort '!USED'
failed to create clientset: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

at the same time kubectl works as expected:

➜ kubectl get pods                                                                                                             
No resources found in default namespace.

to fix you need to update to latest aws cli

 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/install --update

➜ k ice cpu --match 'used>0' --sort '!USED'
no pods found in default namespace

from kubectl-ice.

NimbleArchitect avatar NimbleArchitect commented on May 24, 2024

moved answer to faq page also linked it back here

https://nimblearchitect.github.io/kubectl-ice/faq/#failed-to-create-clientset

from kubectl-ice.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.