如何在 k9s 中`kubectl get all`?

How to `kubectl get all` in k9s?

而不是通过例如导航命名空间:service,然后是 :pod 等等,我想在单个视图中查看命名空间中的所有内容。就好像你会输入 kubectl -n argocd get all.

在文档中找不到信息。这甚至可能吗?

感谢任何建议!

你可以试试

kubectl get all -n argocd -o yaml

kubectl get all -n argocd -o json

列出特定命名空间中的所有公共资源

注意:它不会列出 CRD 或其他自定义资源,如 helm

正在发布基于 GitHub 主题的社区维基答案 - Show multiple resource types without having to switch。随意扩展它。


没错,文档中没有关于此的信息,因为根本没有这种可能性。有open issue with this request on the GitHub page of k9s:

Is your feature request related to a problem? Please describe.
Oftentimes I'm watching/working on multiple resource types at the same time and it's very helpful to not have to switch from one to another. This is something very like kubectl get pod,deploy,... or kubectl get-all commands allows

Describe the solution you'd like
Being able to see multiple or all resources in the same screen without having to switch between resource types like:
:pod,configmap shows all pods & configmaps in the current namespace
or
:all shows all resources in the current namespace (get-all like)

最后 pinged November 4 2021.