美文网首页从容器到kubernetes
kuadmin 搭建kubernetes证书过期处理

kuadmin 搭建kubernetes证书过期处理

作者: 大鹏一怒乘风起 | 来源:发表于2021-08-26 10:36 被阅读0次

    查看当前证书时间

    kubeadm alpha certs check-expiration
    

    查看续订参数

    [root@drbd-master-02 ~]# kubeadm alpha certs renew --help
    This command is not meant to be run on its own. See list of available subcommands.
    
    Usage:
      kubeadm alpha certs renew [flags]
      kubeadm alpha certs renew [command]
    
    Available Commands:
      admin.conf               Renew the certificate embedded in the kubeconfig file for the admin to use and for kubeadm itself
      all                      Renew all available certificates
      apiserver                Renew the certificate for serving the Kubernetes API
      apiserver-etcd-client    Renew the certificate the apiserver uses to access etcd
      apiserver-kubelet-client Renew the certificate for the API server to connect to kubelet
      controller-manager.conf  Renew the certificate embedded in the kubeconfig file for the controller manager to use
      etcd-healthcheck-client  Renew the certificate for liveness probes to healthcheck etcd
      etcd-peer                Renew the certificate for etcd nodes to communicate with each other
      etcd-server              Renew the certificate for serving etcd
      front-proxy-client       Renew the certificate for the front proxy client
      scheduler.conf           Renew the certificate embedded in the kubeconfig file for the scheduler manager to use
    
    Flags:
      -h, --help   help for renew
    

    重新续订所有证书

    kubeadm alpha certs renew all
    

    copy新证书

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

    相关文章

      网友评论

        本文标题:kuadmin 搭建kubernetes证书过期处理

        本文链接:https://www.haomeiwen.com/subject/rigyiltx.html