Skip to content

Instantly share code, notes, and snippets.

@qaiserali
Created June 9, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qaiserali/f5bbf4f578a13a515c087ee424387426 to your computer and use it in GitHub Desktop.
Save qaiserali/f5bbf4f578a13a515c087ee424387426 to your computer and use it in GitHub Desktop.
Merge kubeconfig files via kubectl
$ mv ~/.kube/config ~/.kube/config-bkp - Backup your config file
KUBECONFIG=~/.kube/config:config-file2:config-file3 kubectl config view --merge --flatten > config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment