Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose ALL namespaces #111

Open
pierupaa opened this issue Feb 1, 2023 · 3 comments
Open

Choose ALL namespaces #111

pierupaa opened this issue Feb 1, 2023 · 3 comments

Comments

@pierupaa
Copy link

pierupaa commented Feb 1, 2023

CLI tool k9s has a nice feature to show resources in all namespaces, which is nice if you have a bunch of namespaces and resources, and need to do cluster level things like cluster updates.

@abrochard
Copy link
Owner

That's pretty cool! Do you know how it does it? Is there a special kubectl command or API to get all resources from all namespaces? Or does it just iterate through all namespaces and then gets all resources?

@d1egoaz
Copy link
Contributor

d1egoaz commented Feb 3, 2023

That's pretty cool! Do you know how it does it? Is there a special kubectl command or API to get all resources from all namespaces? Or does it just iterate through all namespaces and then gets all resources?

example:

kubectl get pods --all-namespaces --context <context>

@linktohack
Copy link

linktohack commented Feb 8, 2023

That feature is implemented here linktohack@bdf20c1

I reuse kubel-namespace with a prefix but you may want to add a new variable instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants