Skip to content

feat: improve kubelet address detection for ignoring probes#189

Merged
ctrox merged 2 commits into
mainfrom
improve-probe-addr
Jul 5, 2026
Merged

feat: improve kubelet address detection for ignoring probes#189
ctrox merged 2 commits into
mainfrom
improve-probe-addr

Conversation

@ctrox

@ctrox ctrox commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Trying to guess the kubelet IP address in eBPF by using the comm name has proven very unreliable in some scenarios. Plus it requires certain k8s distributions to specify the kubelet binary name in the first place.

This commit introduces a new approach: The manager now has a livenessProbe defined which is used to get the kubelet address from an request that is known to be from kubelet. Once we have the address, it's set on the redirector which will take care of inserting it into the respective BPF maps. After the insert, the map is frozen which should also improve performance.

@ctrox ctrox force-pushed the improve-probe-addr branch 2 times, most recently from 883dd34 to 64c5433 Compare June 28, 2026 18:50
ctrox added 2 commits June 29, 2026 18:31
Trying to guess the kubelet IP address in eBPF by using the comm name has
proven very unreliable in some scenarios. Plus it requires certain k8s
distributions to specify the kubelet binary name in the first place.

This commit introduces a new approach: The manager now has a livenessProbe
defined which is used to get the kubelet address from an request that is known
to be from kubelet. Once we have the address, it's set on the redirector which
will take care of inserting it into the respective BPF maps. After the insert,
the map is frozen which should also improve performance.
@ctrox ctrox force-pushed the improve-probe-addr branch from 64c5433 to 806fada Compare June 29, 2026 16:31
@ctrox ctrox merged commit 6013caa into main Jul 5, 2026
7 checks passed
@ctrox ctrox deleted the improve-probe-addr branch July 5, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant