Skip to content

kubectl plugin: supports specifying cluster names when using kubectl~

Notifications You must be signed in to change notification settings

Hargeek/kubectl-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl plugin: kubectl-cluster

kubectl-cluster is a simple kubectl plugin: supports specifying cluster names when using kubectl

If you have a multi-cluster config file in the ~/.kube directory, you can use it

Installation

🤖 ~ git clone https://github.com/Hargeek/kubectl-cluster.git
🤖 ~ cd kubectl-cluster
🤖 ~ make build && make install

Usage

🤖 ~ kubectl cluster -m <cluster-name> <kubectl command>

e.g.

🤖 ~ kubectl cluster -m dev -n default get pods
NAME                     READY   STATUS    RESTARTS      AGE
nginx-5dd948d984-lw68t   1/1     Running   1 (46h ago)   13d

About

kubectl plugin: supports specifying cluster names when using kubectl~

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published