alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.04k stars 261 forks source link

kube-proxy ipvs: "Failed to add IPVS service" err="no such file or directory" in Alpine Linux 3.17.5 #344

Open chymy opened 8 months ago

chymy commented 8 months ago

when I restart the virtual machine, the kube-proxy occasionally encounters the following error logs:

E1007 13:57:26.145807       1 proxier.go:1242] "Failed to sync service" err="no such file or directory" service="123.123.252.197:8989/TCP"
E1007 13:57:26.145840       1 proxier.go:2016] "Failed to add IPVS service" err="no such file or directory" svcName="zy/aiolcm-service-use"
E1007 13:57:26.145875       1 proxier.go:1593] "Failed to sync service" err="no such file or directory" service="194.246.5.29:31134/TCP"
E1007 13:57:26.145904       1 proxier.go:2016] "Failed to add IPVS service" err="no such file or directory" svcName="kube-system/metrics-server"
E1007 13:57:26.145924       1 proxier.go:1242] "Failed to sync service" err="no such file or directory" service="123.123.47.233:443/TCP"
E1007 13:57:26.145952       1 proxier.go:2016] "Failed to add IPVS service" err="no such file or directory" svcName="cnf/sc-gw-0-0-1:dualhttpsgw"
E1007 13:57:26.162009       1 proxier.go:1672] "Failed to get ipvs service" err="could not get IPVS services: no such file or directory"

I debug log:

syscall.Errno(-error) err: no such file or directory

https://github.com/moby/ipvs/blob/fe22ac585b3e22a969cbde61addd99ecd93ab22c/netlink_linux.go#L239-L245

I will not reproduce this issue using alpine: 3.14.7 as the base image, but I can reproduce it using alpine: 3.17.5