K8s 问题 fix
文章平均质量分 76
介绍平时出现的 K8s 问题,分析问题原因以及当时解决方法。
SmallerFL
到处搞点事情的程序猿;
一起进步,一起学习;
时不时记录,嘿嘿;
展开
-
K8s 重设解决 “The connection to the server xxx:6443 was refused” 问题
当前只是 master 节点配置完毕,但是 node 节点尚未加入集群。如果仅一个节点的话,则恭喜您已经 ok。如果有其他节点,则还需加入到当前 K8s 集群中,注意,在生产环境谨慎执行,在测试环境可以考虑使用。注意,在 master 节点上操作。,说明当前机器的时间已经落后 master 机器了,校验不通过,需要更新时间。初步判断,kubelet 没有将 apiserver 拉起来。(2)其他情况,可以尝试在 master 重新创建 token。这段命令需要保留下,后面其他节点加入集群还需要执行。原创 2023-12-16 15:08:27 · 5515 阅读 · 0 评论 -
The connection to the server localhost:8080 was refused
在在worker节点上运行kubectl指令出现如下问题:The connection to the server localhost:8080 was refused - did you specify the right host or port?原创 2021-05-30 18:28:40 · 437 阅读 · 0 评论 -
K8s 使用 kubectl 访问 api-server 失败,node “XXX“ not found
本文提供一种解决思路,解决 node not found 的问题。原创 2021-05-30 18:20:09 · 11890 阅读 · 1 评论