请稍等 ...
×

采纳答案成功!

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

CrashLoopBackOff

老师,设置完node节点master和work01的kube-flannel-ds-cpp6x、kube-flannel-ds-dkkt7节点一直是CrashLoopBackOff状态,这是什么情况?图片描述

图片描述

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

1回答

清风 2022-11-24 10:56:43

执行

kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml

0 回复 有任何疑惑可以回复我~
  • 提问者 老猪他爸 #1
    好像没用
    回复 有任何疑惑可以回复我~ 2022-11-24 19:26:31
  • 提问者 老猪他爸 #2
    [root@master ~]# kubectl -n kube-system logs kube-flannel-ds-cpp6x
    I1124 11:40:25.519273       1 main.go:518] Determining IP address of default interface
    I1124 11:40:25.519509       1 main.go:531] Using interface with name enp0s8 and address 10.0.2.5
    I1124 11:40:25.519517       1 main.go:548] Defaulting external address to interface address (10.0.2.5)
    W1124 11:40:25.519527       1 client_config.go:517] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
    E1124 11:40:25.618304       1 main.go:243] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-cpp6x': pods "kube-flannel-ds-cpp6x" is forbidden: User "system:serviceaccount:kube-system:flannel" cannot get resource "pods" in API group "" in the namespace "kube-system"
    [root@master ~]#
    回复 有任何疑惑可以回复我~ 2022-11-24 19:46:00
  • 提问者 老猪他爸 #3
    [root@node1 ~]# kubectl -n kube-system logs kube-flannel-ds-cpp6x 
    I1124 11:45:27.617855       1 main.go:518] Determining IP address of default interface
    I1124 11:45:27.712733       1 main.go:531] Using interface with name enp0s8 and address 10.0.2.5
    I1124 11:45:27.712910       1 main.go:548] Defaulting external address to interface address (10.0.2.5)
    W1124 11:45:27.713076       1 client_config.go:517] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
    E1124 11:45:27.721546       1 main.go:243] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-cpp6x': pods "kube-flannel-ds-cpp6x" is forbidden: User "system:serviceaccount:kube-system:flannel" cannot get resource "pods" in API group "" in the namespace "kube-system"
    回复 有任何疑惑可以回复我~ 2022-11-24 19:47:29
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信