fix(e2e): fix cross-node networking in Kind cluster#29
Merged
Conversation
Three fixes for the E2E dial tcp :9090 i/o timeout (#28): 1. Label operator namespace with vinyl.bluedynamics.eu/operator-namespace=true so the agent NetworkPolicy allows traffic from the operator. Since Kind v0.24.0, kindnet enforces NetworkPolicies — without this label, agent port 9090 is blocked. 2. Enable TCP MTU probing (sysctl net.ipv4.tcp_mtu_probing=1) before creating the Kind cluster. GitHub Actions runners often have MTU < 1500 due to VXLAN encapsulation, and kindnet's MTU auto-detection is broken (always picks 1500). This causes silent packet drops on cross-node traffic. 3. Add explicit 30s timeout to the agent HTTP client. The Go default http.Client has no timeout, causing goroutines to hang indefinitely on unreachable agents instead of failing fast and retrying. Fixes #28 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Three fixes for the E2E
dial tcp :9090 i/o timeout(#28):1. Namespace label for NetworkPolicy
Label the operator namespace with
vinyl.bluedynamics.eu/operator-namespace=true. Since Kind v0.24.0, kindnet enforces NetworkPolicies viakube-network-policies. The agent NetworkPolicy only allows ingress from namespaces with this label — without it, port 9090 is blocked.2. TCP MTU probing
sudo sysctl -w net.ipv4.tcp_mtu_probing=1before Kind cluster creation. GitHub Actions runners often have MTU < 1500 (VXLAN overhead), but kindnet's MTU detection is broken (kind #3940) — always sets 1500, causing silent packet drops on cross-node traffic.3. Agent HTTP client timeout
Add explicit
30stimeout to the Gohttp.Clientvia--agent-client-timeoutflag. Without this, the default client has no timeout, causing goroutines to hang indefinitely on unreachable agents.Fixes #28
Test plan
go build ./...clean🤖 Generated with Claude Code