flannel 的yml我用的是下面的,第一次使用的课程源码里的flannel.yml,安装失败(有2个pod一直是pending)
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
但是现在在我join worknode 的时候遇到了如下的问题:
kube-flannel-ds-dt457 0/1 CrashLoopBackOff 26 3h2m
kube-flannel-ds-vfrvz 0/1 CrashLoopBackOff 43 2d3h
然后看日志显示的是:
Failed to create SubnetManager: error retrieving pod spec for ‘kube-system/kube-flannel-ds-vfrvz’: pods “kube-flannel-ds-vfrvz” is forbidden: User “system:serviceaccount:kube-system:flannel” cannot get resource “pods” in API group “” in the namespace “kube-system”
请问老师,这样如何解决啊,折腾好几天了。