Created
June 9, 2019 10:50
-
-
Save qaiserali/f5bbf4f578a13a515c087ee424387426 to your computer and use it in GitHub Desktop.
Merge kubeconfig files via kubectl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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