Unable to connect to the server: x509: certificate is valid for x.x.x.x” error
If you have multiple interface IP addresses on your master node and configured kube api-server with one of them. You can receive the certification error, the reason is certification is not valid for the api-server IP address.
[email protected]:~# kubectl get pods -n kube-system Unable to connect to the server: x509: certificate is valid for 10.96.0.1, 188.8.131.52, 184.108.40.206, not 10.0.2.15 [email protected]:~#
You must add the IP address with kubeadm init command for additional api-server serving certificate. This can be IP address or DNS Name.