create a high availability cluster k3d cluster create --kubeconfig-switch-context true --kubeconfig-update-default true --agent 2 --server 2 get the file path of the kubeconfig of a cluster and set it as default export KUBECONFIG=$(k3d kubeconfig write )