Skip to content

Like `kubectl get all`, but get really all resources

License

Notifications You must be signed in to change notification settings

stackitcloud/kubectl-get-all

 
 

Repository files navigation

kubectl-get-all

Go Report Card LICENSE Releases

Kubectl plugin to show really all kubernetes resources

This is a fork of ketall

Intro

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.

Demo

kubectl-get-all demo

Examples

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 or 1y1d1h1m1s.

  • ... 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 options

    KUBECONFIG=otherconfig kubectl-get-all -o name --context some --namespace kube-system --selector run=skaffold

Also see Usage.

Installation

There are several ways to install kubectl-get-all. The recommended installation method is via krew.

Via krew (not yet implemented!)

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.

Binaries

When using the binaries for installation, also have a look at docs/USAGE.

Linux

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

OSX

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

Windows

https://github.com/stackitcloud/kubectl-get-all/releases/latest/download/get-all-windows-amd64.zip

From source

Build on host

Requirements:

  • go
  • git
go build

About

Like `kubectl get all`, but get really all resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%