约 1 分钟阅读
DevOps

K8S 查看证书过期时间

K8S 查看证书过期时间

K8S 查看证书过期时间
SYSTEM更新于 May 17, 2024
80 次阅读约 1 分钟阅读
BASH
[root@k8s-dev-cp-1 ~]# kubeadm certs check-expiration
[check-expiration] Reading configuration from the cluster...
[check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'

CERTIFICATE                EXPIRES                  RESIDUAL TIME   CERTIFICATE AUTHORITY   EXTERNALLY MANAGED
admin.conf                 Apr 16, 2022 16:49 UTC   47d                                     no      
apiserver                  Apr 16, 2022 16:49 UTC   47d             ca                      no      
apiserver-etcd-client      Apr 16, 2022 16:49 UTC   47d             etcd-ca                 no      
apiserver-kubelet-client   Apr 16, 2022 16:49 UTC   47d             ca                      no      
controller-manager.conf    Apr 16, 2022 16:49 UTC   47d                                     no      
etcd-healthcheck-client    Apr 16, 2022 16:49 UTC   47d             etcd-ca                 no      
etcd-peer                  Apr 16, 2022 16:49 UTC   47d             etcd-ca                 no      
etcd-server                Apr 16, 2022 16:49 UTC   47d             etcd-ca                 no      
front-proxy-client         Apr 16, 2022 16:49 UTC   47d             front-proxy-ca          no      
scheduler.conf             Apr 16, 2022 16:49 UTC   47d                                     no      

CERTIFICATE AUTHORITY   EXPIRES                  RESIDUAL TIME   EXTERNALLY MANAGED
ca                      Apr 14, 2031 16:49 UTC   9y              no      
etcd-ca                 Apr 14, 2031 16:49 UTC   9y              no      
front-proxy-ca          Apr 14, 2031 16:49 UTC   9y              no     

评论交流

暂无评论,欢迎分享您的见解