[K8S]error execution phase preflight: couldn‘t validate the identity of the API Server
用kubeadm工具,k8s使用kubeadm join将工作节点加入到主控节点的时候遇到如下问题,执行命令卡顿很久后报错
[root@k8s2 ~]# kubeadm join 192.168.0.180:6443 --token uyylx2.7z02nonw8xgprh5y --discovery-token-ca-cert-hash sha256:0c81e2684c99b6af608f6cdc77c0a81a2d5284d72bcf3353d25fa37bd46839e2 --ignore-preflight-errors=SystemVerification
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 20.10.6. Latest validated version: 19.03error execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "uyylx2"
To see the stack trace of this error execute with --v=5 or higher
问题原因 kubeadm主控节点安装好后,token有效期24小时,如果超过了24小时,工作节点加入到主控节点就会报错,需要重新刷新主控节点的token
解决:
1、在主控节点执行如下命令得到结果如下
[root@k8s1 ~]# kubeadm token create --print-join-command
kubeadm join 192.168.0.180:6443 --token ftuwlv.41r1rbvk17f2mb0w --discovery-token-ca-cert-hash sha256:0c81e2684c99b6af608f6cdc77c0a81a2d5284d72bcf3353d25fa37bd46839e2
2、复制上面的结果在工作节点执行即可
[root@k8s2 ~]# kubeadm join 192.168.0.180:6443 --token ftuwlv.41r1rbvk17f2mb0w --discovery-token-ca-cert-hash sha256:0c81e2684c99b6af608f6cdc77c0a81a2d5284d72bcf3353d25fa37bd46839e2
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 20.10.6. Latest validated version: 19.03
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...This node has joined the cluster:
* Certificate signing request was sent to apiserver and a response was received.
* The Kubelet was informed of the new secure connection details.Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
[K8S]error execution phase preflight: couldn‘t validate the identity of the API Server相关推荐
- Worker节点加入K8S集群报错:error execution phase preflight: couldn‘t validate the identity of the API Server
问题描述 在使用kubeadm的join命令,想要将Worker节点加入到K8S集群,命令如下: kubeadm join cluster-endpoint:6443 --token x5g4uy.w ...
- error execution phase preflight: couldn‘t validate the identity of the API Server: Get
关于K8S服务搭建本人用的云服务分别是:华为云.百度云.阿里云 Running pre-flight checks error execution phase preflight: couldn't ...
- error execution phase preflight: couldn‘t validate the identity of the API Server: abort connecting
在使用k8s的过程中,相信很多人都遇到过使用kubeadm join命令,将node加入master时,出现error execution phase preflight: couldn't vali ...
- k8s入坑之报错(11)添加node节点报错:error execution phase preflight: [preflight] Some fatal errors occurred:...
参考文档:wangzy-Zj-Kubernetes 加入主节点报错 报错信息: [root@localhost ~]# kubeadm join 192.168.1.112:6443 --token ...
- 《Kubernetes 排错指南-006》error execution phase couldn‘t initialize a Kubernetes cluster
系统环境: VMware ESXi 7.0.2 Ubuntu 20.04 LTS Docker 20.10.8 Kubernetes 1.22.1 Node: master 执行命令: $ kubea ...
- k8s join 集群报错之error execution phase kubelet-start: error uploading crisocket:
[问题描述1] 主节点上误删了/etc/kubernetes下的文件,当做kubeadm init的时候,找不到对应的key文件 invalid or incomplete external CA: ...
- error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition
在部署k8s容器过程中添加node节点提示 查询10250端口使用情况发现已经被使用netstat -anpt | grep 10250 说明之前有安装记录,需要进行重新初始化操作 swapoff - ...
- node重新加入error execution phase kubelet-start: error uploading crisocket: Unauthorized
报错内容如下 [root@k8s-node1 ~]# swapoff -a [root@k8s-node1 ~]# kubeadm reset [reset] WARNING: Changes mad ...
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...
最新文章
- Linux基础知识99问(一)
- Cissp-【第3章 安全工程】-2021-2-20(248页-268页)
- Zookeeper之Leader选举源码分析
- MySQL——排序查询
- 在MaxCompute上分析IP来源的方法
- php限制只能中文,php如何实现一个账号只能有一个人登录
- 最短路计数(松弛操作处理)
- shell基础之99乘法表
- Java集合框架源码解读(5)——TreeMap
- 【情感识别】基于matlab GUI SVM语音情感识别(带面板)【含Matlab源码 876期】
- pandas: pd.concat([df1,df3],axis默认=0纵向拼接),concat常用于纵向拼接,默认outer join
- 如何用计算机计算平均温差,换热器传热计算的平均温差法.PPT
- 集成算法 | 随机森林回归模型
- wps页眉怎么设置不同页码_Word:单双页页眉页码不同怎么设置?不同章节重新编码怎么设置?...
- 扫描技术的原理与应用(Nmap使用)
- java游戏后端日志【6】 -- 初生牛犊不怕虎?
- 意间ai绘画怎么输入关键词,让图片变得好看?
- 自建邮件服务器无法发附件,搭建好服务器后不能够发邮件也不能收邮件
- Gameplay常用编写方法(持续更新)
- 数据库复习 BCNF分解算法
热门文章
- 给一些想要学习Java同学的一些建议
- java String工具类/字符串工具类 StringUtil
- Macbook ssh免密登录
- jQuery学习-基本使用
- Java字符串反转常用的2种方式
- 【附源码】计算机毕业设计SSM人脸识别考勤系统
- 解决了,佳能R6相机DAT/MP4视频文件修复卡顿无声问题
- linux下怎样安装openmpi
- 电大计算机画图程序属性,电大计算机绘图(本)复习大全.doc
- java里dialect_java – Hibernate:没有设置方言.设置属性hibernate.dialect