跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求助 k8s v1.13.9 kubelet.crt 证书问题
未分類
23 3 月 2021

求助 k8s v1.13.9 kubelet.crt 证书问题

求助 k8s v1.13.9 kubelet.crt 证书问题

資深大佬 : lifeforwater 1

apiserver 一直在报:
E1202 11:28:33.472590 1 authentication.go:65] Unable to authenticate the request due to an error: [x509: certificate has expired or is not yet valid, x509: certificate has expired or is not yet valid]

执行:for crt in $(find /etc/kubernetes/pki/ -name “*.crt”); do openssl x509 -in $crt -noout -dates; done
/etc/kubernetes/pki/ 下的证书都没过期

执行:openssl x509 -in $(find / -name kubelet.crt) -noout -text |grep ‘ Not ‘
/var/lib/kubelet/pki/kubelet.crt 过期了

执行: openssl x509 -in /var/lib/kubelet/pki/kubelet-client-current.pem -noout -text |grep ‘ Not ‘
kubelet-client-current.pem 没过期

按照官方文档(最低 v1.16 ) https://v1-16.docs.kubernetes.io/zh/docs/tasks/tls/certificate-rotation/ 这里的方法未能解决,参数不支持

求有空的 k8s 大佬帮忙看看,多谢!

大佬有話說 (5)

  • 資深大佬 : anUglyDog

    不要在 v2 讨论专业问题,因为这里没一个专业的。

  • 資深大佬 : FucUrFrd

    1.13 神仙老破小系统

    不支持自动 renew
    你看手动升级吧,不需要停服

    github.com/kubernetes/kubeadm/issues/581

  • 資深大佬 : Jrohy

    https://github.com/yuyicai/update-kube-cert
    这个旧版 k8s 都支持的,续签十年

  • 資深大佬 : privil

    @anUglyDog #1 二三啪啪啪打脸。

  • 資深大佬 : joesonw

    @privil 他的名字说的很明白了.

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具