用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.03

error 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相关推荐

  1. 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 ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. 《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 ...

  6. k8s join 集群报错之error execution phase kubelet-start: error uploading crisocket:

    [问题描述1] 主节点上误删了/etc/kubernetes下的文件,当做kubeadm init的时候,找不到对应的key文件 invalid or incomplete external CA: ...

  7. error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition

    在部署k8s容器过程中添加node节点提示 查询10250端口使用情况发现已经被使用netstat -anpt | grep 10250 说明之前有安装记录,需要进行重新初始化操作 swapoff - ...

  8. node重新加入error execution phase kubelet-start: error uploading crisocket: Unauthorized

    报错内容如下 [root@k8s-node1 ~]# swapoff -a [root@k8s-node1 ~]# kubeadm reset [reset] WARNING: Changes mad ...

  9. 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题

    今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...

最新文章

  1. MySQL DISTINCT:去重(过滤重复数据)
  2. 分布式版本控制系统Git学习资源收集汇总
  3. SpringMVC Root WebApplicationContext启动流程
  4. 边缘计算与云计算的不同,这篇说明白了!
  5. 小程序 mathjs渲染公式_Mac 3D渲染和动画制作----KeyShot 9 Pro
  6. 新手篇 | K8S配置最佳实践
  7. c语言银行家算法模拟程序,C语言实现 操作系统 银行家算法
  8. html 转盘游戏开发,【scratch】简单的大转盘小游戏
  9. 从今天起,我不再使用 Java Date了!
  10. leetcode链表--1、深拷贝链表
  11. IDEA自动生成功能
  12. java万年历报告_java万年历设计报告
  13. 配置使用ATTINY85
  14. 【web】自定义协议Protocol URL
  15. activereport subreport
  16. 【前端学习】ES6语法 函数写法优化
  17. ACL2020-最新录用论文列表分享
  18. 深度学习论文阅读图像分类篇(三):VGGNet《Very Deep Convolutional Networks for Large-Scale Image Recognition》
  19. mysql日期相减返回秒_mysql两个日期相减得到秒、分、天
  20. 如何使用 vimdiff 来 git diff

热门文章

  1. 如何用matlab对信号进行傅里叶变换
  2. 服务器被大流量攻击该怎么办
  3. 你不知道的,线切割机床加工原理,快慢线切割对比,出线割图步骤
  4. Mac修改密码导致钥匙串
  5. 2023电工杯数学建模A题B题
  6. Pearson 相关系数--最佳理解及相关应用
  7. 打开window桌面文件夹路径的方法
  8. 常用逻辑电平标准总结
  9. Asp.Net Ajax (2)---ScriptManager
  10. win7 IE11浏览器怎么降至IE8?