Skip to content

Instantly share code, notes, and snippets.

@thomanhphuc
Created December 28, 2023 08:21
Show Gist options
  • Save thomanhphuc/3b515d622725416fc149ca7acc086c3c to your computer and use it in GitHub Desktop.
Save thomanhphuc/3b515d622725416fc149ca7acc086c3c to your computer and use it in GitHub Desktop.
merge two config kube
cp ~/.kube/config ~/.kube/config.bak
KUBECONFIG=~/.kube/config.1:~/.kube/config.2 kubectl config view --flatten > ~/.kube/config_tmp
mv ~/.kube/config_tmp ~/.kube/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment