I have a bare metal Kubernete cluster running behind a firewall. When trying to connect to it from my local machine (on the other side of the firewall) the connection do not work because the certificate is not correct.
The problem is the following. The cluster runs inside a network behind the firewall and the certificate was created using the master IP. But when I use this same certificate trying to connect from outside the internal network, I use a differente IP. At this point the error message appears, saying that the certificate is different from the address I am trying to connect.
The IP that I use to access the cluster is different from the actual cluster IP displayed here:
How can I fix it? Is it possible to create another certificate with a different IP in my master node?