Hm… seems like PodTemplate shouldn’t use the same ...
# ask-the-community
Hm… seems like PodTemplate shouldn’t use the same ServiceAccount as Propeller itself… (User task Pods should use a different ServiceAccount+IAM Role than Propellor does.) I guess the only way to control that is via the cluster resource manager “templates”? That or separately creating an additional PodTemplate in every namespace?
Is there any documentation about how the cluster_resources and templates work? Like, how do I use it to change something which doesn’t have a predictable name (specifically, the user task Pods)?
@Shannon Carey firstly welcome to the community- having a hard time following. Cc @Dan Rammer (hamersaw)
Hey Shannon let me DM you too
@Shannon Carey can you expand on this? The
that is linked is for propeller manager. Basically, in large-scale scenarios it may be beneficial to have multiple propeller instances and shard the workflows between them. So the service account here is for each of the managed propeller instances. Are you looking for the default PodTemplate work? This allows Flyte to use a pre-defined `PodTemplate`as the base for all k8s tasks. We have extended this work quite a bit to allow PodTemplates per task - (official docs are currently incomplete).
Ah, I see now that it’s different from Helm’s
… that one is under
I guess? Gotcha, so user tasks do use “default” ServiceAccount. My mistake, I wasn’t seeing how the Helm values map to the stuff in the docs.
I assume Flyte automatically creates/customizes new Service Accounts in namespaces it dynamically creates, since I see the “default” one being customized in the templates? What if I want it to automatically create/use a ServiceAccount with a different name? Is that possible?