Repository navigation
fix(edge): opt the edge out of redirect-all capture (control-plane blackhole) - #480
Merged
Merged
Conversation
…ackhole) The edge crashlooped with every informer failing "dial tcp 10.96.0.1:443: connect: connection refused" — it could not reach the apiserver, registrar, or collector (all ClusterIPs). Root cause: the CNI plugin gates capture by NAMESPACE (ignorableNamespace) and reads only pod ANNOTATIONS via CRI — it cannot see the aether.io/managed=false LABEL the agent's isIgnorablePod honors. So the edge (managed=false, in the non-ignored aether-ingress namespace) got the redirect-all capture (proposal 022, default-on since the chart flip) installed by the CNI, while the agent generated NO capture listener for it → all edge egress redirected to a dead capture port → RST → the control plane can't reach anything → gatewayapi caches never sync → hard crash → Envoy runs stale/empty → 503. Latent since the redirect-all default flip: before it, the scoped :18081-only redirect left control-plane egress (:443/:4317) alone. Fix: annotate the edge pod capture.aether.io/redirect-all=false — the opt-out the CNI DOES honor (designed for exactly "carve an infra pod out of the managed-pod default"). Broader gap (follow-up): any managed=false pod in a non-ignored namespace hits this; the CNI cannot see the label, so managed=false must be paired with the annotation (or the CNI needs label visibility / redirect-all should require a positive managed signal). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
bpalermo
added a commit
that referenced
this pull request
Jul 6, 2026
…GNORED) (#484) Structural fix for the edge blackhole (#480 was a per-pod band-aid): the CNI plugin gates capture by NAMESPACE and reads only pod ANNOTATIONS via CRI — it cannot see the aether.io/managed LABEL. So a managed=false pod in a non-ignored namespace got redirect-all capture installed by the CNI while the agent (which DOES see the label, via the API) generated no listener → egress blackholed to a dead capture port. Any such pod hit this, not just the edge. Make the agent the single authority: AddPod returns RESULT_IGNORED (new enum value) for an unmanaged pod. CmdAdd now REGISTERS with the agent FIRST, and only installs capture (scoped redirect, redirect-all, mesh-DNS) when the agent did not ignore the pod — CNI and agent agree by construction. Reordering is safe: the readiness probe targets the directly-bound outbound listener (127.0.0.1:18081), not the redirect path, so it doesn't need the iptables; and the netns pin still precedes registration. The edge's explicit capture.aether.io/redirect-all=false annotation (#480) stays as harmless defense-in-depth. Tests: AddPod ignorable → RESULT_IGNORED (unit + integration); sendAddPod returns the ignored flag. Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
Edge crashlooped — all informers 'connection refused' to ClusterIPs (apiserver/registrar/collector). Root cause: the CNI gates capture by namespace + reads only annotations via CRI, so it can't see
aether.io/managed=false(a label) — the edge got redirect-all capture (022, default-on) with no listener → egress blackholed → caches never sync → crashloop → stale Envoy → 503. Latent since the redirect-all default flip. Fix:capture.aether.io/redirect-all=falseannotation (the opt-out the CNI honors). Follow-up: any managed=false pod in a non-ignored ns needs this pairing.