#15464·dynamo

Kubernetes discovery ignores restartable init containers in container discovery mode

Author: tmonty12Created Oct 1, 2026Updated Oct 1, 2026
Labelsbuglanguage::rustdynamo-runtimedeployment::k8sdiscovery

Parent DEP: #14657. Found in #14927.

In container discovery mode (DYN_KUBE_DISCOVERY_MODE=container), each container registers DynamoWorkerMetadata as {pod}-{CONTAINER_NAME}, or {pod} for main. Readiness is built only from pod.status.containerStatuses:

  • extract_ready_containers in lib/runtime/src/discovery/kube/utils.rs
  • pod_worker_ids in deploy/inference-gateway/ext-proc/src/epp.rs

Native sidecars (init containers with restartPolicy: Always) report their status in initContainerStatuses, so their registration never matches a ready entry. A native-sidecar worker never becomes visible to frontends or the EPP.

Proposal: in both places, also include ready entries from initContainerStatuses whose container has restartPolicy: Always, with tests.