Hello, Could anyone point me to how the extra name...
# ask-the-community
f
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
what namespaces do you currently have?
cc @David Espejo (he/him)
f
Hi @Samhita Alla. namespace: flyte
d
@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!