kubernetes错误Unable to connect to the server解决方法
发表于:2024-09-22 作者:千家信息网编辑
千家信息网最后更新 2024年09月22日,Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of
千家信息网最后更新 2024年09月22日kubernetes错误Unable to connect to the server解决方法
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")
root@ubuntu:~# kubectl get svcUnable 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")root@ubuntu:~# rm -rf $HOME/.kuberoot@ubuntu:~# mkdir -p $HOME/.kuberoot@ubuntu:~# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configroot@ubuntu:~# sudo chown $(id -u):$(id -g) $HOME/.kube/configroot@ubuntu:~# kubectl get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEkubernetes ClusterIP 10.96.0.1443/TCP 9m30s
先删除 $HOME/.kube
node NotReady
root@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu NotReady master 12m v1.17.3
因为没有创建flannel网络
root@ubuntu:~# kubectl create -f kube-flannel.ymlpodsecuritypolicy.policy/psp.flannel.unprivileged createdclusterrole.rbac.authorization.k8s.io/flannel createdclusterrolebinding.rbac.authorization.k8s.io/flannel createdserviceaccount/flannel createdconfigmap/kube-flannel-cfg createddaemonset.apps/kube-flannel-ds-amd64 createddaemonset.apps/kube-flannel-ds-arm64 createddaemonset.apps/kube-flannel-ds-arm createddaemonset.apps/kube-flannel-ds-ppc64le createddaemonset.apps/kube-flannel-ds-s390x createdroot@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu NotReady master 14m v1.17.3
等待 网络创建完成
root@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu Ready master 15m v1.17.3
更多相关资讯:
出现Unable to connect to the remote server是什么意思
Genymotion启动报错:"unable to connect to the virtual device"的解决方法
网络
方法
意思
更多
资讯
错误
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
navicat 多数据库
曙光服务器怎么换内存条
sql数据库模糊查询使用方法
云服务器 性能
软件开发成本构成科目
层次分析法数据库
关于智能网络安全的演讲稿
网络技术和计算机软件开发
昌平区网络营销网络技术一体化
客户端有数据库才能连接数据库吗
大连锦程网络技术有限公司
大数据股票软件开发
星际战甲一般加速选什么服务器
dell服务器操作系统
超星数据库的论文怎么撤稿
772啊数据库的确
粮情软件开发委托协议
数据库有哪些常用的数据模型
有数据库的电脑换硬盘
何文登 网络安全
安全学院网络安全学习教程
科技互联网的素材
计算机软件开发合同纠纷二审判决
陕西方言档案数据库
北京服务器散热片厂家
北京酷客艺能网络技术有限公司
销售管理数据库设计er图
db2 查看数据库状态6
包河区资金管理软件开发公司
服务器 负载