我的工作节点中一直使用 calico-policy-only (v 3.22) 模式和 kubernetes 1.24.1。最近,工作节点升级到了 1.25.4 ,因此为了兼容,我们也必须将 calico 升级到 3.25 版本。
仅限印花布https://github.com/projectcalico/calico/blob/release-v3.25/manifests/calico-policy-only.yaml
升级后 -> calico-node pod 开始显示日志 ->
2023-06-12T14:28:10.164964531Z 2023-06-12 14:28:10.164 [INFO][825] felix/route_table.go 589: Interface missing, will retry if it appears. ifaceName="calie9798b8b1fb" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.164964531Z 2023-06-12 14:28:10.164 [INFO][825] felix/route_table.go 1181: Failed to access interface because it doesn't exist. error=Link not found ifaceName="calib12e6189458" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165122449Z 2023-06-12 14:28:10.164 [INFO][825] felix/route_table.go 1249: Failed to get interface; it's down/gone. error=Link not found ifaceName="calib12e6189458" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165241012Z 2023-06-12 14:28:10.164 [INFO][825] felix/route_table.go 589: Interface missing, will retry if it appears. ifaceName="calib12e6189458" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165395313Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 1181: Failed to access interface because it doesn't exist. error=Link not found ifaceName="calic92537802cb" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165395313Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 1249: Failed to get interface; it's down/gone. error=Link not found ifaceName="calic92537802cb" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165649382Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 589: Interface missing, will retry if it appears. ifaceName="calic92537802cb" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165780200Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 1181: Failed to access interface because it doesn't exist. error=Link not found ifaceName="cali6f3e8804ec6" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165780200Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 1249: Failed to get interface; it's down/gone. error=Link not found ifaceName="cali6f3e8804ec6" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.165977461Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 589: Interface missing, will retry if it appears. ifaceName="cali6f3e8804ec6" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.166135029Z 2023-06-12 14:28:10.165 [INFO][825] felix/route_table.go 1181: Failed to access interface because it doesn't exist. error=Link not found ifaceName="cali823447cfd40" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.166184371Z 2023-06-12 14:28:10.166 [INFO][825] felix/route_table.go 1249: Failed to get interface; it's down/gone. error=Link not found ifaceName="cali823447cfd40" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.166285733Z 2023-06-12 14:28:10.166 [INFO][825] felix/route_table.go 589: Interface missing, will retry if it appears. ifaceName="cali823447cfd40" ifaceRegex="^cali.*" ipVersion=0x4 tableIndex=254
2023-06-12T14:28:10.
我还通过 ifconfig 检查了工作节点,它没有列出任何以 cali* 为前缀的接口。
calico 无法创建网络接口的原因可能是什么。尽管所有 calico pod 都在运行(kube-controllers 和 typha 也正常,没有故障日志,calico-node pod 也已准备就绪 - 但它们确实有上述日志)
此外,在应用 calico 之后,我重新创建 pod 后,calico 所要配置的 pod 也未配置,也没有附加“projectcalico”注释。因此策略也不起作用。基本上,我怀疑由于没有创建网络接口,因此缺少在网络上配置 pod。
知道这里可能缺少什么吗?提前致谢。