Non-blocking entrypoint: start neuron-web before k3s is ready #45

Merged
will.anderson merged 1 commits from fix/entrypoint-k3s-nonblocking into dev 2026-05-10 17:54:57 +00:00
Owner

k3s fails in Cloud Run with unable to select an IP from default routes. Entrypoint blocked on k3s startup so neuron-web never bound 8080. Fix: add --flannel-iface=eth0 and start neuron-web immediately without waiting for k3s.

k3s fails in Cloud Run with unable to select an IP from default routes. Entrypoint blocked on k3s startup so neuron-web never bound 8080. Fix: add --flannel-iface=eth0 and start neuron-web immediately without waiting for k3s.
will.anderson added 1 commit 2026-05-10 17:54:50 +00:00
Non-blocking entrypoint: start neuron-web before k3s is ready
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 2m11s
180acc92a0
k3s fails to start in Cloud Run gen2 with "unable to select an IP from
default routes" because Cloud Run's network sandbox doesn't expose a
standard default route for k3s to detect. The blocking wait on k3s
prevented neuron-web from ever binding port 8080, causing Cloud Run's
startup probe to time out and terminate the container.

Two changes:
1. Add --flannel-iface=eth0 so k3s pins to Cloud Run's eth0 rather than
   walking the routing table to detect a default-route interface.
2. Start neuron-web immediately after launching k3s in background.
   soul-demo becomes available asynchronously; neuron-web handles it
   being temporarily unavailable gracefully.
will.anderson merged commit 25f6631049 into dev 2026-05-10 17:54:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#45