Isan-Rivkin / kube_query

Query all kubernetes clusters at once using a kubectl wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube_query

Use kubectl but on all of the available k8s clusters available in the kubeconfig file. Currently will query only AWS EKS clusters.

Install

Brew

MacOS (And ubuntu supported) installation via brew:

brew tap isan-rivkin/toolbox
brew install kq

from source

git clone
# default location on for Macos /usr/local/bin
make release
# or use make release BIN_DIR='/path/to/kq/binary' for custom kq binary location

Target OS:

make build-linux

make build-osx

make build-windows

Usage

It's a kubectl wrapper that querys all contexts (e.g all of your clusters). Just use whatever kubectl command with that.

kq <kubectl query>

example

kq get pods --namespace kube-system
kq get ns
kq describe pod --namespace default

About

Query all kubernetes clusters at once using a kubectl wrapper

License:Apache License 2.0


Languages

Language:Go 74.7%Language:Makefile 16.6%Language:Dockerfile 8.7%