<#7485 feat(flyte-binary): manage the task-pod def...
# flyte-github
a
#7485 feat(flyte-binary): manage the task-pod default ServiceAccount Pull request opened by pingsutw Tracking issue Why are the changes needed? Task pods run as the namespace
default
ServiceAccount — the executor returns an empty service account name (
executor/pkg/plugin/task_exec_metadata.go
,
GetK8sServiceAccount() string { return "" }
), so Kubernetes assigns
default
. The chart had no way to put annotations on that ServiceAccount. On EKS this means task pods can't be given an IRSA role (`eks.amazonaws.com/role-arn`), so they run without cloud credentials and fail S3 operations with
403 Forbidden
(e.g. downloading the fast-register code bundle). What changes were proposed in this pull request? •
templates/task-serviceaccount.yaml
(new) — manages the task ServiceAccount (
default
, configurable) in the release namespace so it can carry annotations/labels. •
values.yaml
— adds a
taskServiceAccount
block, disabled by default (
create: false
); set
create: true
and
annotations
to attach an IRSA role: taskServiceAccount: create: true name: default annotations: eks.amazonaws.com/role-arn: "arnawsiam:&lt;acct&gt;role/<worker-role>" Note: because Kubernetes auto-creates the
default
ServiceAccount, an existing one must carry Helm ownership metadata (
app.kubernetes.io/managed-by: Helm
, `meta.helm.sh/release-name`/`-namespace`) for Helm to adopt it on upgrade. How was this patch tested? •
helm template --show-only templates/task-serviceaccount.yaml
renders the
default
ServiceAccount with the configured IRSA annotation when enabled, and nothing when
create: false
. •
helm lint
passes. • Verified live on a dev cluster: a task pod using the annotated
default
SA assumes the worker IRSA role and the previously-403'ing
HEAD
on the code bundle returns 200. Labels added Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte