kubernetes 重建certificate证书

  1. Delete or move the old ones from /etc/kubernetes/pki/apiserver.{crt,key}
  2. Run sudo kubeadm alpha phase certs apiserver --apiserver-advertise-address 192.168.X.X --apiserver-cert-extra-sans where is a comma-separated list of IP addresses and/or hostnames.
  3. Restart the apiserver.

你可能感兴趣的:(kubernetes 重建certificate证书)