Skip to content

feat(api): dial Kubernetes-discovered orchestrators on their pod IP w… - #3772

Closed
superbarne wants to merge 1 commit into
e2b-dev:mainfrom
codeanker:feature/api-k8s-prefer-pod-ip
Closed

superbarne wants to merge 1 commit into
e2b-dev:mainfrom
codeanker:feature/api-k8s-prefer-pod-ip

Conversation

@superbarne

Copy link
Copy Markdown

…ith K8S_PREFER_POD_IP

The API's Kubernetes discovery addressed orchestrator and template-manager pods by status.hostIP, which is right for the reference deploy, where those pods run with host networking and both addresses are the same. An orchestrator that keeps its own network namespace, for example on an edge node behind an overlay that routes pod CIDRs but not node addresses, is then dialed on an address the API cannot reach, and every create times out.

kube.NewPodsOnPort already carried a pod-IP wiring that nothing used. The API now builds both planes through it and follows a new K8S_PREFER_POD_IP flag: off keeps the node's address, on dials the pod's. The default is unchanged.

…ith K8S_PREFER_POD_IP

The API's Kubernetes discovery addressed orchestrator and template-manager
pods by status.hostIP, which is right for the reference deploy, where those
pods run with host networking and both addresses are the same. An
orchestrator that keeps its own network namespace, for example on an edge
node behind an overlay that routes pod CIDRs but not node addresses, is then
dialed on an address the API cannot reach, and every create times out.

kube.NewPodsOnPort already carried a pod-IP wiring that nothing used. The API
now builds both planes through it and follows a new K8S_PREFER_POD_IP flag:
off keeps the node's address, on dials the pod's. The default is unchanged.
@cla-bot

cla-bot Bot commented Oct 29, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @superbarne on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check'

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