老师我在部署calico的时候遇到问题。controller已经ready,但是两个node没有ready。 下面是 describe 和 log 信息
describe显示:
————————————————————
Events:
Type Reason Age From Message
Normal Scheduled 45m default-scheduler Successfully assigned kube-system/calico-node-7zj4m to k8s-node2
Normal Pulled 45m kubelet Container image “docker.io/calico/cni:v3.25.0” already present on machine
Normal Created 45m kubelet Created container upgrade-ipam
Normal Started 45m kubelet Started container install-cni
Normal Started 45m kubelet Started container upgrade-ipam
Normal Pulled 45m kubelet Container image “docker.io/calico/cni:v3.25.0” already present on machine
Normal Created 45m kubelet Created container install-cni
Normal Pulled 45m kubelet Container image “docker.io/calico/node:v3.25.0” already present on machine
Normal Created 45m kubelet Created container mount-bpffs
Normal Started 45m kubelet Started container mount-bpffs
Normal Started 45m kubelet Started container calico-node
Normal Pulled 45m kubelet Container image “docker.io/calico/node:v3.25.0” already present on machine
Normal Created 45m kubelet Created container calico-node
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:09:23.874 [INFO][108] confd/health.go 180: Number of node(s) with BGP peering established = 0
calico/node is not ready: BIRD is not ready: BGP not established with 192.168.205.12
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:09:33.853 [INFO][118] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:09:43.836 [INFO][140] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:09:53.845 [INFO][162] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:10:03.853 [INFO][184] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 44m kubelet Readiness probe failed: 2023-02-08 03:10:13.848 [INFO][206] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 43m kubelet Readiness probe failed: 2023-02-08 03:10:23.839 [INFO][228] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 43m kubelet Readiness probe failed: 2023-02-08 03:10:33.843 [INFO][250] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 43m kubelet Readiness probe failed: 2023-02-08 03:10:43.842 [INFO][272] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
Warning Unhealthy 4m57s (x232 over 43m) kubelet (combined from similar events): Readiness probe failed: 2023-02-08 03:49:23.837 [INFO][5366] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: felix is not ready: readiness probe reporting 503
容器日志显示:
2023-02-08 03:58:13.836 [WARNING][53] felix/health.go 266: Reporter is not ready. name=“CalculationGraph"
2023-02-08 03:58:13.836 [WARNING][53] felix/health.go 266: Reporter is not ready. name=“InternalDataplaneMainLoop"
2023-02-08 03:58:13.836 [WARNING][53] felix/health.go 228: Health: not ready
2023-02-08 03:58:14.375 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:14.377 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:15.377 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:15.380 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:16.372 [WARNING][53] felix/health.go 266: Reporter is not ready. name=“InternalDataplaneMainLoop"
2023-02-08 03:58:16.372 [WARNING][53] felix/health.go 266: Reporter is not ready. name=“CalculationGraph"
2023-02-08 03:58:16.380 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:16.383 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:17.383 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:17.386 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:18.386 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:18.387 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:19.389 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:19.391 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:19.846 [INFO][53] felix/int_dataplane.go 1689: Received *proto.HostMetadataV4V6Update update from calculation graph msg=hostname:“k8s-node2” ipv4_addr:“192.168.205.11/24” labels:<key:“beta.kubernetes.io/arch” value:“amd64” > labels:<key:“beta.kubernetes.io/os” value:“linux” > labels:<key:“kubernetes.io/arch” value:“amd64” > labels:<key:“kubernetes.io/hostname” value:“k8s-node2” > labels:<key:“kubernetes.io/os” value:“linux” >
2023-02-08 03:58:20.391 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:20.394 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:21.396 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:21.398 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:21.741 [INFO][55] monitor-addresses/autodetection_methods.go 229: Including CIDR information from host interface. CIDR=“192.168.205.11/24"
2023-02-08 03:58:21.741 [INFO][55] monitor-addresses/startup.go 585: Using IPv4 address from environment: IP=192.168.205.11/24
2023-02-08 03:58:22.399 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:22.410 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:23.410 [INFO][53] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2023-02-08 03:58:23.413 [INFO][53] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2023-02-08 03:58:23.842 [WARNING][53] felix/health.go 266: Reporter is not ready. name="InternalDataplaneMainLoop"
2023-02-08 03:58:23.842 [WARNING][53] felix/health.go 266: Reporter is not ready. name="CalculationGraph"
2023-02-08 03:58:23.843 [WARNING][53] felix/health.go 228: Health: not ready
————————————————————————
在 Controller 里面有一行错误,不知道和node启动失败有没有关系
2023-02-08 03:09:58.628 [ERROR][1] client.go 290: Error getting cluster information config ClusterInformation=“default” error=Get “https://10.233.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default”: dial tcp 10.233.0.1:443: i/o timeout