This bug, in my case, is caused by kube-proxy failing to start in kubernetes-control-plane and kubernetes-worker nodes. The ipset package is not installed and causes kube-proxy process to crash when kubernetes-control-plane and kubernetes-worker apps are configured with {mode: ipvs, ipvs: {strictARP: true}}
This bug, in my case, is caused by kube-proxy failing to start in kubernetes- control- plane and kubernetes-worker nodes. The ipset package is not installed and causes kube-proxy process to crash when kubernetes- control- plane and kubernetes-worker apps are configured with {mode: ipvs, ipvs: {strictARP: true}}
see https:/ /bugs.launchpad .net/charm- calico/ +bug/2045651
*****************
kubectl logs calico-node-2glrn -n kube-system -c install-cni:
2024-07-19 14:59:08.896 [INFO][1] cni-installer/<nil> <nil>: Running as a Kubernetes pod host/opt/ cni/bin/ bandwidth" cni/bin/ bandwidth host/opt/ cni/bin/ calico" cni/bin/ calico host/opt/ cni/bin/ calico- ipam" cni/bin/ calico- ipam host/opt/ cni/bin/ flannel" cni/bin/ flannel host/opt/ cni/bin/ host-local" cni/bin/ host-local host/opt/ cni/bin/ loopback" cni/bin/ loopback host/opt/ cni/bin/ portmap" cni/bin/ portmap host/opt/ cni/bin/ tuning" cni/bin/ tuning
2024-07-19 14:59:08.896 [INFO][1] cni-installer/<nil> <nil>: Installing any TLS assets
2024-07-19 14:59:08.973 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:08.973 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.158 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.158 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.362 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.362 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.367 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.367 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.372 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.372 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.378 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.378 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.385 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.385 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.391 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/
2024-07-19 14:59:09.391 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/
2024-07-19 14:59:09.391 [INFO][1] cni-installer/<nil> <nil>: Wrote Calico CNI binaries to /host/opt/cni/bin
2024-07-19 14:59:09.494 [INFO][1] cni-installer/<nil> <nil>: CNI plugin version: v3.27.3 -bin-dir is not writeable, skipping /10.152. 183.1:443/ api/v1/ namespaces/ kube-system/ serviceaccounts /calico- cni-plugin/ token": dial tcp 10.152.183.1:443: i/o timeout /10.152. 183.1:443/ api/v1/ namespaces/ kube-system/ serviceaccounts /calico- cni-plugin/ token": dial tcp 10.152.183.1:443: i/o timeout
2024-07-19 14:59:09.494 [INFO][1] cni-installer/<nil> <nil>: /host/secondary
2024-07-19 14:59:09.494 [WARNING][1] cni-installer/<nil> <nil>: Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2024-07-19 14:59:39.522 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Post "https:/
2024-07-19 14:59:39.522 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Post "https:/
*****************
journalctl:
Jul 20 06:50:06 game-ewe systemd[1]: Started Service for snap application kube-proxy.daemon. daemon[ 105450] : I0720 06:50:06.995084 105450 httplog.go:132] "HTTP" verb="GET" URI="/api/ v1/nodes/ game-ewe" latency="4.58224ms" userAgent= "kube-proxy/ v1.30.3 (linux/amd64) kubernetes/6fc0a69" audit-ID= "601b0ed6- a8ac-4f4a- ba47-9da13b1a86 ee" srcIP=" 127.0.0. 1:54318" apf_pl= "global- default" apf_fs= "global- default" apf_iseats=1 apf_fseats=0 apf_additionalL atency= "0s" apf_execution_ time="3. 85055ms" resp=200 daemon[ 156558] : I0720 06:50:06.996654 156558 server.go:1062] "Successfully retrieved node IP(s)" IPs=["192. 168.2.49" ] daemon[ 156558] : I0720 06:50:07.000981 156558 conntrack.go:59] "Setting nf_conntrack_max" nfConntrackMax= 131072 daemon[ 156558] : I0720 06:50:07.007944 156558 server.go:659] "kube-proxy running in dual-stack mode" primary ipFamily="IPv4" daemon[ 156558] : E0720 06:50:07.011189 156558 server.go:558] "Error running ProxyServer" err="can't use the IPVS proxier: error getting ipset version, error: executable file not found in $PATH" daemon[ 156558] : E0720 06:50:07.011230 156558 run.go:74] "command failed" err="can't use the IPVS proxier: error getting ipset version, error: executable file not found in $PATH" proxy.daemon. service: Main process exited, code=exited, status=1/FAILURE proxy.daemon. service: Failed with result 'exit-code'. daemon[ 105450] : I0720 06:50:07.910227 105450 httplog.go:132] "HTTP" verb="GET" URI="/api/ v1/nodes/ brief-skink" latency= "7.769693ms" userAgent= "kube-proxy/ v1.30.3 (linux/amd64) kubernetes/6fc0a69" audit-ID= "5abb9492- b891-49bf- 8043-beaa3bd466 96" srcIP=" 192.168. 2.26:37758" apf_pl= "global- default" apf_fs= "global- default" apf_iseats=1 apf_fseats=0 apf_additionalL atency= "0s" apf_execution_ time="7. 058536ms" resp=200
Jul 20 06:50:06 game-ewe kube-apiserver.
Jul 20 06:50:06 game-ewe kube-proxy.
Jul 20 06:50:07 game-ewe kube-proxy.
Jul 20 06:50:07 game-ewe kube-proxy.
Jul 20 06:50:07 game-ewe kube-proxy.
Jul 20 06:50:07 game-ewe kube-proxy.
Jul 20 06:50:07 game-ewe systemd[1]: snap.kube-
Jul 20 06:50:07 game-ewe systemd[1]: snap.kube-
Jul 20 06:50:07 game-ewe kube-apiserver.