Kubectl get nodes always tried to contact localhost
I have configured a kubernetes cluster on a server(ubuntu 22.04) with two network interfaces. I am using IP on one of the interfaces as api server using –apiserver-advertise-address. after kubeadm init was run I noticed SSL certificates were issued to server name and also localhost.