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.
1.4m articles
1.4m replys
5 comments
57.0k users