kubeadm续约k8s 1.23.14所有证书

[root@zy-nph-skg-fat-k8s-master01 kubernetes-1.23.14-0]# kubeadm certs renew all
[renew] Reading configuration from the cluster...
[renew] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[renew] Error reading configuration from the Cluster. Falling back to default configuration

certificate embedded in the kubeconfig file for the admin to use and for kubeadm itself renewed
certificate for serving the Kubernetes API renewed
certificate the apiserver uses to access etcd renewed
certificate for the API server to connect to kubelet renewed
certificate embedded in the kubeconfig file for the controller manager to use renewed
certificate for liveness probes to healthcheck etcd renewed
certificate for etcd nodes to communicate with each other renewed
certificate for serving etcd renewed
certificate for the front proxy client renewed
certificate embedded in the kubeconfig file for the scheduler manager to use renewed

Done renewing certificates. You must restart the kube-apiserver, kube-controller-manager, kube-scheduler and etcd, so that they can use the new certificates.

 备注:

1、覆盖新的证书

cp /etc/kubernetes/admin.conf /root/.kube/config

2、修改api的IP

vim /root/.kube/config

server: https://172.31.24.X:6443

posted @ 2025-10-06 12:44  awks  阅读(4)  评论(0)    收藏  举报