Home

Awesome

kubectl-everything

Are you frustrated by 'kubectl get all' not actually returning all? Well, I was, and it turns out that the get all command is planned to be deprecated eventually. My annoyance has manifest into a kubectl plugin called kubectl everything, which is a simple bash script that outputs everything in the current namespace, a specified namespace, or all namespaces. The script here is accessible as a kubectl plugin if you store it in your path as an executable bash file called kubectl-everything.

kubectl-sadpods

This command will show you all pods that are not in Running or Completed status.

kubectl-sadreplicas

This command will show you any replicasets that don't have the same number of "ready" pods as they've requested.

kubectl-get_laq

This command will produce an Azure Log Analytics query suitable for finding container logs for a deployment or pod.

kubectl-get_pod_priority

This command produces a list of pods and what priorityclass they're operating under.

kubectl-get_psp

This command produces a list of pods and what Pod Security Policy they're operating under.

Prerequisites

Installation

  1. Copy kubectl-* into your path.
  2. Enjoy being able to find all the things in your namespaces.

Usage (everything)

Usage (sadpods)

Usage (sadreplicas)

Usage (get-laq)

Usage (get-pod-priority)

Usage (get-psp)