K8S join节点报错:configmaps xxx is forbidden: User “system:bootstrap:xxx“ cannot get resource “configmap

问题场景:

今天接手同事的K8S,说搭建一直无法join,运行命令join命令一直失败于是加了--v=10增加细节展示信息查看到底是什么错误:

[root@master ~]# kubeadm join 192.168.1.100:6443 --token qsb2ad.6953q4eiqq0kn2dt \
        --discovery-token-ca-cert-hash sha256:e0987c10f68b46c97a3a87d3acf0f8a03fa87262a4cb671b2f7038bf47db45c4

...

GET https://192.168.1.100:6443/api/v1/namespaces/kube-system/configmaps/kubelet-config-1.24?timeout=10s 403 Forbidden in 1 milliseconds
I0801 22:39:38.481970   12174 round_trippers.go:460] Response Headers:
I0801 22:39:38.481987   12174 round_trippers.go:463]     Audit-Id: 0f3f6e68-32c3-4284-97eb-285c85cd2e6e
I0801 22:39:38.481990   12174 round_trippers.go:463]     Cache-Control: no-cache, private
I0801 22:39:38.481993   12174 round_trippers.go:463]     Content-Type: application/json
I0801 22:39:38.481996   12174 round_trippers.go:463]     X-Content-Type-Options: nosniff
I0801 22:39:38.481999   12174 round_trippers.go:463]     X-Kubernetes-Pf-Flowschema-Uid: 34d87034-dce0-4828-
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值