I have multiple microk8s clusters (arch64 and arm) but during the installation all are named microk8s-cluster.
I am trying to manage my clusters from a separate server but having all the clusters internally named microk8s-cluster is preventing me from using the ‘kubectl config use-context’ command, as it always chooses the first cluster named ‘microk8s-cluster’.
As a work around I have aliases that set the KUBECONFIG variable to point to different config files. The problem with this method is the ‘config view’ command does not tell me which cluster I am really working on. I have to issue a ‘get nodes’ to see the servers.
Is there a way to set the cluster name at creation or rename a cluster in microk8s?