Kubectl plugin to show really all kubernetes resources
This is a fork of ketall
For a complete overview of all resources in a kubernetes cluster, kubectl get all --all-namespaces is not enough, because it simply does not show everything.
This helper lists really all resources the cluster has to offer.
Get all resources...
-
... excluding events (this is hardly ever useful)
kubectl-get-all
-
... including events
kubectl-get-all --exclude=
-
... created in the last minute
kubectl-get-all --since 1m
This flag understands typical human-readable durations such as
1mor1y1d1h1m1s. -
... in the default namespace
kubectl-get-all --namespace=default
-
... at cluster level
kubectl-get-all --only-scope=cluster
-
... using list of cached server resources
kubectl-get-all --use-cache
Note that this may fail to show really everything, if the http cache is stale.
-
... and combine with common
kubectloptionsKUBECONFIG=otherconfig kubectl-get-all -o name --context some --namespace kube-system --selector run=skaffold
Also see Usage.
There are several ways to install kubectl-get-all. The recommended installation method is via krew.
Krew is a kubectl plugin manager. If you have not yet installed krew, check out the krew install guide.
Then installation is as simple as
kubectl krew install get-allThe plugin will be available as kubectl get-all.
Download the desired version for your operating system and processor architecture from the kubectl-get-all releases page.
Make the file executable and place it in a directory available in your $PATH.
Requirements:
- go
- git
go build