kubernetes/hack/tools
Davanum Srinivas 92ce184653
kube-proxy: detect host CPU count via cpuset.NumCPU instead of cadvisor
detectNumCPU sized nf_conntrack_max using github.com/google/cadvisor/lib
machine topology. nf_conntrack_max is host-wide, so it must be sized from the
node's CPU count, not runtime.NumCPU(): the latter honors the process cpuset
and undercounts when kube-proxy runs under a static CPU policy, which is the
behavior cadvisor worked around (kubernetes/kubernetes#99225).

Use cpuset.NumCPU() from k8s.io/utils, which reads the node's online CPU count
from /sys/devices/system/cpu/online, with a runtime.NumCPU() fallback. This
drops the cadvisor dependency from pkg/proxy/conntrack and bumps k8s.io/utils
to pick up cpuset.NumCPU.
2026-06-26 08:01:46 -04:00
..
golangci-lint Bump sigs.k8s.io/kube-api-linter 2026-05-13 11:20:23 -04:00
instrumentation kube-proxy: detect host CPU count via cpuset.NumCPU instead of cadvisor 2026-06-26 08:01:46 -04:00
publishing-verifier rewrite publishing-bot verify script in go 2024-09-06 09:30:51 +05:30
.gitignore Ignore go.work.sum for fake workspaces 2024-05-16 13:52:36 -04:00
go.mod Bump gotest.tools/gotestsum 2026-05-12 11:55:38 +02:00
go.sum Bump gotest.tools/gotestsum 2026-05-12 11:55:38 +02:00
go.work Bump to go 1.26 2026-03-05 16:48:18 -05:00
README.md Remove hack/tools/Makefile 2022-02-26 12:57:10 -08:00

This directory contains a stub go module used to track version of development tools like the ones needed for linting go sources.