rancher突然报错:Cluster health check failed: Failed to communicate with API server during namespace check: Get "https://10.55.0.40:6443/api/v1/namespaces/kube-system?timeout=45s": write tcp 172.17.0.2:443->10.55.0.40:54546: i/o timeout

环境信息:
RKE2 版本:
rancher2.6.3

节点 CPU 架构,操作系统和版本:

集群配置:

问题描述:
我没做什么操作,突然就显示报错信息:Cluster health check failed: Failed to communicate with API server during namespace check: Get “https://10.55.0.40:6443/api/v1/namespaces/kube-system?timeout=45s”: write tcp 172.17.0.2:443->10.55.0.40:54546: i/o timeout

重现步骤:

  • 安装 RKE2 的命令:

预期结果:

实际结果:

日志

ERROR $root.definitions.org.projectcalico.crd.v1.FelixConfiguration.properties.spec.properties.natPortRange has invalid property: anyOf
I0918 01:45:11.096458 1 client.go:360] parsed scheme: “endpoint”
I0918 01:45:11.096481 1 endpoint.go:68] ccResolverWrapper: sending new addresses to cc: [{https://10.55.0.40:2379 0 }]
I0918 01:45:11.147650 1 client.go:360] parsed scheme: “endpoint”
I0918 01:45:11.147675 1 endpoint.go:68] ccResolverWrapper: sending new addresses to cc: [{https://10.55.0.40:2379 0 }]
I0918 01:45:11.262652 1 client.go:360] parsed scheme: “endpoint”
I0918 01:45:11.262678 1 endpoint.go:68] ccResolverWrapper: sending new addresses to cc: [{https://10.55.0.40:2379 0 }]
E0918 01:45:11.342317 1 customresource_handler.go:669] error building openapi models for networkpolicies.crd.projectcalico.org: ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.destination.properties.notPorts.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.destination.properties.ports.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.notProtocol has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.protocol has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.source.properties.notPorts.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.egress.items..properties.source.properties.ports.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.destination.properties.notPorts.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.destination.properties.ports.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.notProtocol has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.protocol has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.source.properties.notPorts.items. has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.NetworkPolicy.properties.spec.properties.ingress.items..properties.source.properties.ports.items. has invalid property: anyOf

等一会应该就好了,或者你升级到最新版试试