kubectl-get-all

command module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳