Comments (4)
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.
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.
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.
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)
- does not handle DownwardAPI volume types HOT 1
- I love the plugin so so...much. How can I donate you some money? HOT 2
- Colorizing output HOT 5
- init containers always shown HOT 2
- how much I love the tool :) HOT 1
- Wrong probe name in `kubectl ice probes` output
- ice ip doesn't honor args HOT 4
- kubectl ice cpu - incorrect value (v0.0.9+) HOT 3
- skip type = "I" containers HOT 5
- memory used format HOT 2
- Error: failed to create clientset: no Auth Provider found for name "oidc" HOT 3
- priority class HOT 4
- displaying node name and selected node label(s) the pod is placed on HOT 7
- status: revisualize to enhance UX HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubectl-ice.