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
1m
or1y1d1h1m1s
. -
... 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
kubectl
optionsKUBECONFIG=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
, get it at
https://github.com/kubernetes-sigs/krew.
Then installation is as simple as
kubectl krew install get-all
The plugin will be available as kubectl get-all
, see Usage for further details.
When using the binaries for installation, also have a look at docs/USAGE.
curl -Lo get-all.gz https://github.com/stackitcloud/kubectl-get-all/releases/latest/download/get-all-linux-amd64.tar.gz && \
tar -xvf get-all.tar.gz && chmod +x get-all
curl -Lo get-all.gz https://github.com/stackitcloud/kubectl-get-all/releases/latest/download/get-all-darwin-arm64.tar.gz && \
tar -xvf get-all.tar.gz && chmod +x get-all
https://github.com/stackitcloud/kubectl-get-all/releases/latest/download/get-all-windows-amd64.zip
Requirements:
- go
- git
go build