Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the kubernetes startup error (Unable to connect to the server: x509: certificate signed by unknown authority)

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to solve Kubernetes startup error (Unable to connect to the server: x509: certificate signed by unknown authority ), which has certain reference value. Take a look at it with me.

Kubernetes started with the following error:

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

What is the reason for this error? It's possible that I forgot to execute the script.

1. mkdir -p $HOME/.kube

2.sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

3.sudo chown $(id -u):$(id -g) $HOME/.kube/config

As long as the script program is executed, it will be normal

1. [root@worker3 shell]# kubectl get node

2. NAME STATUS ROLES AGE VERSION

3. worker3 Ready master 1m v1.10.0 or above is Kubernetes startup error (Unable to connect to the server: x509: certificate signed by unknown authority ) How to solve the details of the content, after reading whether there is any harvest? If you want to know more, welcome to the industry news!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report