Skip to content

reynn/merge-kubeconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

merge-kubeconfig

Merge configurations for multiple Kubernetes clusters into one file. This allows using kubectl config use-context to switch between clusters instead of manually switching configs.

Usage

Docker

docker run -v "$(pwd):/tmp:rw" quay.io/reynn/merge-kubeconfig /tmp/config1.yaml /tmp/config2.yaml /tmp/config3.yaml

Local

go get github.com/reynn/merge-kubeconfig

merge-kubeconfig -outpath ~/.kube/config ~/.kube/config1.yaml ~/.kube/config2.yaml ~/.kube/config3.yaml

Flags

Flag Description
out What type of output, yaml will write out to a .yaml file, text will output to stdout.
outpath Path to write a yaml file to.
namespace If provided will add a namespace to the output yaml config.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published