Repository navigation
feat(agent): agent-ready exec probe over a pod-local health socket (proposal 041) - #1156
Merged
Merged
Conversation
bpalermo
force-pushed
the
feat/041-agent-standby
branch
from
October 3, 2026 17:57
933d5ab to
18b4c85
Compare
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 17:57
6d28f2c to
f03ceea
Compare
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 18:18
f03ceea to
3abc095
Compare
…roposal 041) The agent pod is hostNetwork, so its TCP probe port (8082) is a node port: a surge-rolled standby could neither declare it (hostPort collision keeps the pod Pending) nor bind it, and a port shared with SO_REUSEPORT would let the other agent answer the kubelet for this one. - agent: --health-socket serves /healthz and /readyz (the agent's readiness checks, the new "standby" gate among them, plus the manager's ping and cache-sync) on a Unix socket in the pod's own /tmp emptyDir. --health-probe-bind-address exposes the TCP endpoint's address; "0" turns it off. Both default to today's behaviour (no socket, TCP :8082), so a chart that predates this keeps working against the new image. - agent/cmd/agent-ready: the exec probe. Stdlib-only and without net/http (one hand-written HTTP/1.0 request, the status line read back); //agent/cmd/agent-ready:deps_test asserts the linked ELF's build info lists no module. A failing readyz prints the verbose body, so the kubelet's probe event names the failing check. - the agent image ships it as /agent-ready (image_test asserts it). Refs #1123 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 18:54
3abc095 to
ca13a5e
Compare
bpalermo
marked this pull request as ready for review
October 3, 2026 18:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1123. Part 2 of 4 of proposal 041. Stack: #1155 ← this PR ← chart ← e2e gate. Base:
feat/041-agent-standby.Why
The agent pod is hostNetwork, so its TCP probe port (8082) is a node port:
What
Agent.
--health-socketserves/healthzand/readyzon a Unix socket in the pod's own/tmpemptyDir.standbygate among them) plus the manager's ping andcache-sync, so the socket gate is no weaker than the TCP one.--health-probe-bind-addressexposes the TCP address;0turns it off.:8082), so a chart that predates this works against the new image.agent/cmd/agent-ready, the exec probe (open question 2):net/httpnor anything outside the standard library.?verbosebody, so the kubelet's probe event names the failing check.//agent/cmd/agent-ready:deps_testasserts that the linked ELF's build info lists no module at all. It also checks the main path, so a vacuous pass is impossible, plus an 8 MiB ceiling.Image. The agent image ships it as
/agent-ready(image_testasserts it).Tests
agent-ready_test:constants.DefaultAgentHealthSocketPath.healthsock_test:--config=raceon//agent/cmd/agent-ready:all //agent/internal/cmd:all: pass.//agent/cmd/agent:image_test: pass. Lint clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr