ZBLOG

kubeadm init报错certificate signed by unknown authority

If you are receiving a “certificate signed by unknown authority” error while running kubeadm init, it means that your Kubernetes API server certificate is not trusted by your local system. This can occur for a number of reasons, such as using self-signed certificates or using a custom CA.

To resolve this issue, you need to add the root CA certificate to the trust store on your machine. Here are the steps to do so:

  1. Obtain the root CA certificate used to sign your Kubernetes API server certificate. You can usually find this in the Kubernetes configuration files.

  2. Copy the root CA certificate to your local machine.

  3. Add the root CA certificate to the system’s trust store. The exact steps for doing this depend on your operating system and distribution.

  • On Linux, you can typically copy the certificate to /usr/local/share/ca-certificates and run sudo update-ca-certificates.
  • On macOS, you can import the certificate into Keychain Access and mark it as trusted.
  • On Windows, you can use PowerShell commands like Import-Certificate and Add-TrustedRootCertificate.
  1. Once you have added the root CA certificate to your system’s trust store, retry running kubeadm init.

This should resolve the “certificate signed by unknown authority” error and allow kubeadm init to complete successfully.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=5003

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?