Skip to content

Instantly share code, notes, and snippets.

@abelaska
Created June 19, 2020 12:20
Show Gist options
  • Save abelaska/8143425b86e057c4f6aabd23e573472b to your computer and use it in GitHub Desktop.
Save abelaska/8143425b86e057c4f6aabd23e573472b to your computer and use it in GitHub Desktop.
Merge kubeconfig
# ~/.bashrc
# https://github.com/kubernetes/kubernetes/issues/46381#issuecomment-461404505
function kmerge() {
KUBECONFIG=~/.kube/config:$1 kubectl config view --flatten > ~/.kube/mergedkub && mv ~/.kube/mergedkub ~/.kube/config
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment