首页 > Web开发 > 详细

Kubernetes问题总结

时间:2021-08-30 10:06:27      阅读:10      评论:0      收藏:0      [点我收藏+]

PodCIDRs问题


Kubernetes v1.18.5 + Cilium 1.9.4  安装遇到的问题

  • 报错信息
    E0827 21:08:22.925379       1 controller_utils.go:245] Error while processing Node Add: failed to allocate cidr from cluster cidr at idx:0: CIDR allocation failed; there are no remaining CIDRs left to allocate in the accepted range
    I0827 21:08:22.925407       1 event.go:278] Event(v1.ObjectReference{Kind:"Node", Namespace:"", Name:"prod-be-k8s-wn6", UID:"8a72a498-c29a-4fb9-a798-7773f5a4f538", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: Normal reason: CIDRNotAvailable Node prod-be-k8s-wn6 status is now: CIDRNotAvailable
    I0827 21:08:22.925420       1 shared_informer.go:230] Caches are synced for service account 
    W0827 21:08:22.925499       1 actual_state_of_world.go:506] Failed to update statusUpdateNeeded field in actual state of world: Failed to set statusUpdateNeeded to needed true, because nodeName="prod-fe-k8s-wn1" does not exist

    判断原因是因为Kubernetes Controller-manager --allocate-node-cidrs 为Pod预留的网段与 Cilium-agent的 --set ipam.mode=cluster-pool重叠,只是怀疑

  • 修复方案修改cilium-agent的PodCIDRs IPAM管理方案使用 --set ipam.mode=kubernetes

Kubernetes问题总结

原文:https://www.cnblogs.com/apink/p/15201033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!