I'm using rke to generate a Kubernetes cluster in a private cloud. It produces a kube_config_cluster.yml
file. Is there a way to add this config to my $HOME/.kube/config
file?
Without having the .kube/config set, when using kubectl
, I have to pass the argument:
kubectl --kubeconfig kube_config_cluster.yml <command>
Or set the KUBECONFIG environment variable.
export KUBECONFIG=kube_config_cluster.yml