<#7587 fix(flyte-binary): inject task-pod control-...
# flyte-github
a
#7587 fix(flyte-binary): inject task-pod control-plane callback env vars by default Pull request opened by pingsutw Why are the changes needed? When deploying the
flyte-binary
(v2) chart to a real cluster, runs never complete: the task pod stays "Running" while the task-controller recreates it roughly every 75 seconds. Task pods call back to the control plane (to enqueue child actions and watch their state) at the endpoint in the
_U_EP_OVERRIDE
env var. The chart never sets it, so the SDK falls back to its devbox default
host.docker.internal:8090
, which does not resolve inside a real cluster:
Copy code
Failed to launch action ... EnqueueAction: client error (Connect):
dns error: failed to lookup address information: Name or service not known
Every action exhausts its retries, the controller records a system error and recreates the pod — forever. The
flyte-devbox
chart already injects these env vars, but the base
flyte-binary
chart (what real deployments use) does not, so out-of-the-box task execution is broken. What changes were proposed in this pull request? Inject the three env vars the devbox already relies on into every task pod by default, in
001-plugins.yaml
under `plugins.k8s.default-env-vars`: •
_U_EP_OVERRIDE
— where the task reaches the control plane. Computed from this release's in-cluster HTTP service via the existing
flyte-binary.service.http.name
/
.port
helpers, i.e.
<fullname>-http.<namespace>:8090
, so it is correct for any
fullnameOverride
and namespace. •
_U_INSECURE: "true"
— talk plain HTTP; the in-cluster service has no TLS (TLS terminates at the ingress). •
_U_USE_ACTIONS: "1"
— use the actions/queue execution path. Users can still override or extend these via
configuration.inline.plugins.k8s.default-env-vars
(the inline config layer loads after and wins). Single-file change — no chart version bump: the
version: ... # VERSION
line is a placeholder that CI rewrites from the release tag at publish time (
scripts/tag-helm.sh
), so a per-PR bump has no effect on the published chart. How was this patch tested? No helm-unittest/chart-testing harness exists for this chart, so verified by rendering: •
helm template r ./ -n flyte
→
_U_EP_OVERRIDE: "r-flyte-binary-http.flyte:8090"
•
helm template r ./ -n prod --set fullnameOverride=myflyte
→
_U_EP_OVERRIDE: "myflyte-http.prod:8090"
(confirms the helper-derived endpoint respects
fullnameOverride
+ namespace) •
helm lint ./
passes. Also validated end-to-end on a live EKS deployment (
fullnameOverride: flyte
, namespace
flyte
): before the change, task pods looped on the
host.docker.internal
DNS error; after injecting these same three env vars, a flytesnacks run fanned out to its child actions and all 11 task pods reached
Completed
with zero callback errors. Labels • fixed Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte