请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

二进制方式kubelet启动报错

node-2和node-3一样的错误,前面没有出现过错误(containerd也起起来了没有出现问题),直到kubelet这里才出现问题,在问答区也没有找到相关的解答,请老师帮忙看看。

node-2节点报错:

[root@node-2 ~]# journalctl -f -u kubelet
-- Logs begin at Tue 2022-10-18 11:19:09 CST. --
Oct 18 21:47:55 node-2 kubelet[26064]: I1018 21:47:55.686902   26064 kubelet_node_status.go:531] Recording NodeHasSufficientPID event message for node node-2
Oct 18 21:47:55 node-2 kubelet[26064]: I1018 21:47:55.686919   26064 kubelet_node_status.go:71] Attempting to register node node-2
Oct 18 21:47:55 node-2 kubelet[26064]: E1018 21:47:55.688689   26064 kubelet_node_status.go:93] Unable to register node "node-2" with API server: nodes is forbidden: User "system:anonymous" cannot create resource "nodes" in API group "" at the cluster scope
Oct 18 21:47:55 node-2 kubelet[26064]: I1018 21:47:55.713932   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:47:55 node-2 kubelet[26064]: E1018 21:47:55.760022   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:55 node-2 kubelet[26064]: E1018 21:47:55.860463   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:55 node-2 kubelet[26064]: E1018 21:47:55.960991   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:55 node-2 kubelet[26064]: E1018 21:47:55.992483   26064 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Service: failed to list *v1.Service: services is forbidden: User "system:anonymous" cannot list resource "services" in API group "" at the cluster scope
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.061568   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.162061   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.262505   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.363133   26064 kubelet.go:2243] node "node-2" not found

Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.463664   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.563953   26064 kubelet.go:2243] node "node-2" not found

Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.664420   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: I1018 21:47:56.713950   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.764668   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.865224   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:56 node-2 kubelet[26064]: E1018 21:47:56.965727   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.066276   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.166679   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.267275   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.367756   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.468265   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.568943   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.669354   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: I1018 21:47:57.714795   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.769655   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.870213   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:57 node-2 kubelet[26064]: E1018 21:47:57.970780   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.071316   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.171854   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.272416   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.372895   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.473707   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.574211   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.674681   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: I1018 21:47:58.714113   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.774993   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.875453   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:58 node-2 kubelet[26064]: E1018 21:47:58.976020   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.076525   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.177100   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.277578   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.378122   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.478534   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.579065   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.596761   26064 controller.go:144] failed to ensure lease exists, will retry in 7s, error: leases.coordination.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "kube-node-lease"
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.679773   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: I1018 21:47:59.712862   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.780213   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.880755   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:47:59 node-2 kubelet[26064]: E1018 21:47:59.981287   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.081770   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.182369   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.282759   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.383387   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.483916   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.533032   26064 kubelet.go:2163] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.584514   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.684976   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: I1018 21:48:00.714595   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.785527   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.885954   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:00 node-2 kubelet[26064]: E1018 21:48:00.986573   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.087078   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.187625   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.288130   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.388594   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.488872   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.589419   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.689941   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: I1018 21:48:01.714495   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.790456   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.890996   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:01 node-2 kubelet[26064]: E1018 21:48:01.991547   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.092177   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.192682   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.293200   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.393968   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.494356   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.595015   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689099   26064 kubelet_node_status.go:339] Setting node annotation to enable volume controller attach/detach
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689284   26064 setters.go:86] Using node IP: "192.168.106.74"
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689824   26064 kubelet_node_status.go:531] Recording NodeHasSufficientMemory event message for node node-2
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689856   26064 kubelet_node_status.go:531] Recording NodeHasNoDiskPressure event message for node node-2
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689864   26064 kubelet_node_status.go:531] Recording NodeHasSufficientPID event message for node node-2
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.689883   26064 kubelet_node_status.go:71] Attempting to register node node-2
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.695884   26064 kubelet.go:2243] node "node-2" not found
Oct 18 21:48:02 node-2 kubelet[26064]: E1018 21:48:02.698083   26064 kubelet_node_status.go:93] Unable to register node "node-2" with API server: nodes is forbidden: User "system:anonymous" cannot create resource "nodes" in API group "" at the cluster scope
Oct 18 21:48:02 node-2 kubelet[26064]: I1018 21:48:02.713055   26064 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-2" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope

node-3节点报错:

[root@node-3 ~]# journalctl -f -u kubelet
-- Logs begin at Tue 2022-10-18 19:35:26 CST. --
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.398341   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.498785   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.599294   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.699805   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.800200   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:00 node-3 kubelet[26529]: E1018 22:13:00.900692   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.001068   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: I1018 22:13:01.075467   26529 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.101963   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.202825   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.303177   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.403378   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.503728   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.604010   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.704328   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.804913   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:01 node-3 kubelet[26529]: E1018 22:13:01.905350   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.005528   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: I1018 22:13:02.075648   26529 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.105827   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.206186   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.307062   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.407778   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.508683   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.609499   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.710017   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.810419   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:02 node-3 kubelet[26529]: E1018 22:13:02.910821   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.011852   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.075246   26529 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.112149   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.164283   26529 kubelet.go:2163] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.212295   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.312670   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.412918   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.513753   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.530889   26529 kubelet_node_status.go:339] Setting node annotation to enable volume controller attach/detach
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.531139   26529 setters.go:86] Using node IP: "192.168.106.82"
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.532924   26529 kubelet_node_status.go:531] Recording NodeHasSufficientMemory event message for node node-3
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.532945   26529 kubelet_node_status.go:531] Recording NodeHasNoDiskPressure event message for node node-3
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.532950   26529 kubelet_node_status.go:531] Recording NodeHasSufficientPID event message for node node-3
Oct 18 22:13:03 node-3 kubelet[26529]: I1018 22:13:03.532966   26529 kubelet_node_status.go:71] Attempting to register node node-3
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.537403   26529 kubelet_node_status.go:93] Unable to register node "node-3" with API server: nodes is forbidden: User "system:anonymous" cannot create resource "nodes" in API group "" at the cluster scope
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.614417   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.715214   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.815928   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:03 node-3 kubelet[26529]: E1018 22:13:03.916825   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.017089   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: I1018 22:13:04.075800   26529 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.117448   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.218126   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.318244   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.419096   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.519255   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.620207   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.720554   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.821365   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:04 node-3 kubelet[26529]: E1018 22:13:04.921700   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:05 node-3 kubelet[26529]: E1018 22:13:05.022031   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:05 node-3 kubelet[26529]: I1018 22:13:05.075144   26529 csi_plugin.go:1016] Failed to contact API server when waiting for CSINode publishing: csinodes.storage.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "csinodes" in API group "storage.k8s.io" at the cluster scope
Oct 18 22:13:05 node-3 kubelet[26529]: E1018 22:13:05.122639   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:05 node-3 kubelet[26529]: E1018 22:13:05.223579   26529 kubelet.go:2243] node "node-3" not found
Oct 18 22:13:05 node-3 kubelet[26529]: E1018 22:13:05.264734   26529 controller.go:144] failed to ensure lease exists, will retry in 7s, error: leases.coordination.k8s.io "node-3" is forbidden: User "system:anonymous" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "kube-node-lease"
Oct 18 22:13:05 node-3 kubelet[26529]: E1018 22:13:05.324323   26529 kubelet.go:2243] node "node-3" not found


正在回答 回答被采纳积分+3

2回答

提问者 快快飞翔 2022-10-19 09:53:11

第一张和第二张是最后的报错信息,第三张是启动刚开始报错的截图

https://img1.sycdn.imooc.com//szimg/634f580b0968c8af25751599.jpg

https://img1.sycdn.imooc.com//szimg/634f580c092b48e425751599.jpg

https://img1.sycdn.imooc.com//szimg/634f580c09cdec6825751599.jpg


0 回复 有任何疑惑可以回复我~
刘果国 2022-10-19 09:29:41

看不到信息,内容全被遮挡了,不知道是慕课的页面有问题还是啥。要不发几个截图吧。另外日志最好有完整的,从启动开始到退出(可以前台运行服务,控制台非常容易看)

0 回复 有任何疑惑可以回复我~
  • 提问者 快快飞翔 #1
    老师,截图贴出来了,在我自己的回复中可以看到,日志太多了,截了10张图,都还没有截取一半的日志信息,我就贴了最后循环滚动报错的信息和刚开始报错的信息
    回复 有任何疑惑可以回复我~ 2022-10-19 09:55:12
  • 刘果国 回复 提问者 快快飞翔 #2
    kubelet访问apiserver失败了,你看那个日志提示很明显,用了一个匿名的角色去访问apiserver,肯定是kubelet认证授权配置漏了或错了。仔细检查一下
    回复 有任何疑惑可以回复我~ 2022-10-21 09:35:50
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信