I have a kubernetes cluster with HypriotOS which I moved to another IP range.

I have updated the /etc/kubernetes/admin.conf in one of the nodes but when I rune kubeadm it fails the certificate:

$ kubeadm config view
Get x509: certificate is valid for,, not

How I can create a new certificate?

Is a better way of changing clusters IP addresses?


You need to add the new ip to the pki (This command vary in different versions this is for v1.12):

kubeadm alpha phase certs all --apiserver-advertise-address
  • I do not have the cluster anymore so I will accept your answer unless someone comment it is not valid – albert Jul 15 at 10:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.