I installed Rancher on Microk8s non HA. I created ...
# general
l
I installed Rancher on Microk8s non HA. I created another Microk8s cluster and tried to join the cluster to Rancher and it initially it did not work. It did not work because I added the rancher url into the downstream cluster /etc/hosts file. I found a link that said to do this fix, it also mentioned to patch the daemonset but there is not daemonset.
Copy code
<https://github.com/rancher/rancher/issues/18832>


kubectl -n cattle-system patch  deployments cattle-cluster-agent --patch '{
    "spec": {
        "template": {
            "spec": {
                "hostAliases": [
                    {
                      "hostnames":
                      [
                        "rancher.dev.test"
                      ],
                      "ip": "NODE_IP_ADRESS"
                    }
                ]
            }
        }
    }
}'
After I did this, the cluster was picked up and I could launch deployments from Rancher. But I have the attached image error. My environment: -Running of Google Cloud using Ubuntu 20.04. -I have enabled add-ons in microk8s- helm3, dns