While going through Deploying the DNS Cluster Add-on, I attempted to apply the coredns cluster add-on, but ran into an authentication issue on my controllers:
Oct 01 14:18:10 controller-0 kube-controller-manager[3945]: E1001 14:18:10.611587 3945 leaderelection.go:320] error retrieving resource lock kube-system/kube-controller-manager: endpoints "kube-controller-manager" is forbidden: User "system:anonymous" cannot get resource "endpoints" in API group "" in the namespace "kube-system"
Once I modified the service file to authenticate with the kube-controller-manager.kubeconfig file and applied to all 3 controllers, ran sudo systemctl daemon-reload, and restarted services (sudo systemctl restart kube-apiserver kube-controller-manager kube-scheduler), I was able to successfully continue with the guide.
While going through Deploying the DNS Cluster Add-on, I attempted to apply the
coredns
cluster add-on, but ran into an authentication issue on my controllers:Once I modified the service file to authenticate with the
kube-controller-manager.kubeconfig
file and applied to all 3 controllers, ransudo systemctl daemon-reload
, and restarted services (sudo systemctl restart kube-apiserver kube-controller-manager kube-scheduler
), I was able to successfully continue with the guide.Please let me know if you need more information.