How to merge kubectl config file with ~/.kube/config?

Do this:

export KUBECONFIG=~/.kube/config:~/someotherconfig 
kubectl config view --flatten

You can then pipe that out to a new file if needed.

Leave a Comment