I would like to add a Kubernetes cluster to Juju that’s on my local network. The cluster was spun up with microk8s, but not with my local copy of microk8s. I tried both with and without specifying a region, like this:
juju add-k8s microk8s --storage=operator-storage <kubeconfig
juju add-k8s microk8s --storage=operator-storage --region=localhost <kubeconfig
The first one gave me an error about needing to specify a region, and the second one gave me an error about microk8s already existing as a built-in cloud. I also tried giving it a name of microk8s-cluster
(which is the cluster name in kubeconfig
), and that didn’t seem to help, as I got an error about localhost
being an invalid region.