K8s Workflow Utils

Collection of shell utilities for Kubernetes workflows. And a zsh theme.
Alternatives To K8s Workflow Utils
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Kubectx14,910
11 days ago26January 11, 202246apache-2.0Go
Faster way to switch between clusters and namespaces in kubectl
Kube Ps12,971
3 months ago1March 03, 20218apache-2.0Shell
Kubernetes prompt info for bash and zsh
Kubetail2,830
2 months ago32apache-2.0Shell
Bash script to tail Kubernetes logs from multiple pods at the same time
Kafkactl561
17 days ago30December 03, 20219apache-2.0Go
Command Line Tool for managing Apache Kafka
Zsh Kubectl Prompt375
2 years agomitShell
Display information about the kubectl current context and namespace in zsh prompt.
Mimir91
2 years ago7July 02, 2021gpl-3.0Go
Fast and minimal shell prompt
Kube Aliases82
a month ago9mitShell
Kubernetes Aliases and Bash Functions
Zsh Kubectl Completion30
3 years agogpl-3.0Makefile
Rich zsh completion for the kubectl command.
K8s Workflow Utils25
4 years ago1mitShell
Collection of shell utilities for Kubernetes workflows. And a zsh theme.
Ansible Role Kubernetes23
4 months agomitShell
Ansible role for installing Kubernetes
Alternatives To K8s Workflow Utils
Select To Compare


Alternative Project Comparisons
Readme

k8s-workflow-utils

See individual files for more detailed descriptions.

chns (change namespace)

Usage: chns NAMESPACE

NAMESPACE can be the shortest substring that uniquely identifies the namespace within the current context.

Zsh completions available.

chctx (change context)

Usage: chctx CONTEXT [NAMESPACE]

CONTEXT can be the shortest substring that uniquely identifies the context.

Zsh completions available. NAMESPACE feature uses chns.

exec-pod

Usage: exec-pod POD_TYPE [CONTAINER]

Chooses a pod whose name starts with POD_TYPE and executes kubectl exec -ti "$POD" -c=$CONTAINER -- sh.

E.g. exec-pod web to enter a pod in the "web" deployment

kgoom (kubectl get oom)

Usage: kgoom [ARGS]

Returns information about any pods that have containers that have been OOMKilled. Any args passed to the script (e.g. namespace, context flags) will be passed to the kubectl command.

Example:

NAMESPACE  /  NAME  /  CONTAINERS  /  LAST TERMINATION REASON  /  LAST TERMINATION TIME
my-app        web      nginx          OOMKilled                   2017-11-24T09:12:38Z

kubernetes-context zsh theme

Looks like this:

screenshot

Or in a git repo:

screenshot

Or if the last command failed:

screenshot

kube_context_aliases zsh plugin

Creates aliases named after your kube contexts that switch to the context in question. The alias for minikube is minik to avoid conflict with the minikube binary.

WARNING: Think about what your context names might conflict with before using this!

Example: Given a kubeconfig containing context "fave", this plugin will alias fave to kubectl config use-context fave.

Popular Zsh Projects
Popular Kubernetes Projects
Popular Command Line Interface Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell
Kubernetes
Zsh
Completion
Minikube