Is there a simple kubectl command to take a kubeconfig file (that contains a cluster+context+user) and merge it into the ~/.kube/config file as an additional context?
kubectl
kubeconfig
Do this:
export KUBECONFIG=~/.kube/config:~/someotherconfig kubectl config view --flatten
You can then pipe that out to a new file if needed.
2.1m questions
2.1m answers
60 comments
57.0k users