Closed chenm0520 closed 4 months ago
Hello, I also encountered this problem, have you solved it?
Hello, I also encountered this problem, have you solved it? well,What should I say? I overloaded the system and run the installation script ,then everything is ok,the biggest difference between this time and the previous one maybe the addition of kernel model
nf_conntrack
(case official document showsnf_conntrack_ipv4
,it can't be recognized by the my system's kernel,I removed it),hope this can help you
I also faced this problem, any work around?
I am trying to build a lastest k8s cluster in production environment,following the Official documentation Install using Helm to install calico without
values.yaml
. After installation,the calico-node pod can't be healthlyYour Environment
xtables-lock: Type: HostPath (bare host directory volume) Path: /run/xtables.lock HostPathType: FileOrCreate policysync: Type: HostPath (bare host directory volume) Path: /var/run/nodeagent HostPathType: DirectoryOrCreate tigera-ca-bundle: Type: ConfigMap (a volume populated by a ConfigMap) Name: tigera-ca-bundle Optional: false node-certs: Type: Secret (a volume populated by a Secret) SecretName: node-certs Optional: false var-run-calico: Type: HostPath (bare host directory volume) Path: /var/run/calico HostPathType:
var-lib-calico: Type: HostPath (bare host directory volume) Path: /var/lib/calico HostPathType:
cni-bin-dir: Type: HostPath (bare host directory volume) Path: /opt/cni/bin HostPathType:
cni-net-dir: Type: HostPath (bare host directory volume) Path: /etc/cni/net.d HostPathType:
cni-log-dir: Type: HostPath (bare host directory volume) Path: /var/log/calico/cni HostPathType:
flexvol-driver-host: Type: HostPath (bare host directory volume) Path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds HostPathType: DirectoryOrCreate kube-api-access-fv4c7: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional:
Normal Scheduled 5m40s default-scheduler Successfully assigned calico-system/calico-node-wpght to node Normal Pulled 5m39s kubelet Container image "docker.io/calico/pod2daemon-flexvol:v3.27.3" already present on machine Normal Created 5m39s kubelet Created container flexvol-driver Normal Started 5m39s kubelet Started container flexvol-driver Normal Pulled 5m38s kubelet Container image "docker.io/calico/cni:v3.27.3" already present on machine Normal Created 5m38s kubelet Created container install-cni Normal Started 5m38s kubelet Started container install-cni Normal Pulled 5m36s kubelet Container image "docker.io/calico/node:v3.27.3" already present on machine Normal Created 5m35s kubelet Created container calico-node Normal Started 5m35s kubelet Started container calico-node Warning Unhealthy 5m33s (x2 over 5m34s) kubelet Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/calico/bird.ctl: connect: connection refused`
cat calico-node's container log, some error log: ` 2024-04-23T01:00:01.370346526+08:00 2024-04-22 17:00:01.367 [ERROR][75] confd/resource.go 318: Error from checkcmd "bird -p -c /etc/calico/confd/config/.bird.cfg2832451251": "bird: /etc/calico/confd/config/.bird.cfg2832451251:6:1 Unable to open included file /etc/calico/confd/config/bird_aggr.cfg: No such file or directory\n"
2024-04-23T01:00:01.370348574+08:00 2024-04-22 17:00:01.367 [INFO][75] confd/resource.go 252: Check failed, but file does not yet exist - create anyway `
It was the last first that I built k8s cluster and I have tried many times,any useful troubleshooting ideas would be helpful, thanks!