https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

01/26/2024, 4:26 PM
Hello, Could anyone point me to how the extra namespaces (e.g. flytesnacks-development) that the pods for tasks are running under are managed (created, etc.) by Flyte? I think it’s in the GO code. I need to understand it to trouble-shoot why these namespaces were not found by flyteadmin at containers startup.
Copy code
sync-cluster-resources panic: Failed to sync cluster resources : Failed to create kubernetes object from config template [ad_spark_service_account.yaml] for namespace [flyteexamples-integration] with err: namespaces "flyteexamples-integration" not found,
Thanks.
s

Samhita Alla

01/29/2024, 5:51 AM
what namespaces do you currently have?
cc @David Espejo (he/him)
f

Frank Shen

01/29/2024, 4:43 PM
Hi @Samhita Alla. namespace: flyte
d

David Espejo (he/him)

01/29/2024, 5:12 PM
@Frank Shen The Cluster Resource Manager is the component that connects to flyteadmin, get the projects and reconcille the info it fins there into K8s resources. In the case of Spark, it's not only namespaces but Roles, SAs, etc This is the part of the code where the CRM interfaces with admin: https://github.com/flyteorg/flyte/blob/fb9ffd56e81e7f7e4657cd668e53b2f1557e9178/flyteadmin/pkg/clusterresource/interfaces/admin.go The CRM is enabled by default but it's worth to double check that this is set: https://github.com/flyteorg/flyte/blob/fb9ffd56e81e7f7e4657cd668e53b2f1557e9178/charts/flyte-core/values.yaml#L838
Oh I get it, thanks for sharing @Frank Shen!