#tips
Tag
-
Using multiple config files with kubectl and other Kubernetes tools
If you want to point tools like
kubectl
to a config file other than~/.kube/config
you can set the environment variableKUBECONFIG
. But did you know thatKUBECONFIG
behaves sort of like a path, andkubectl
will load all the config files it finds? -
How to merge Kubernetes kubectl config files
Sometimes when working with a new Kubernetes cluster you will be given a config file to use when authenticating with the cluster. This file should be placed at
~/.kube/config
. However you may already have an existing config file at that location and you need to merge them together.