# flyte-deployment

Jan Fiedler

03/07/2023, 12:52 PM
Hey! I have a question regarding how the role permission setup is supposed to work on the multi cluster setup. What i would like to run is basically one control-plane with multiple data-planes in different AWS Accounts. Every data-plane should have a dedicated
for accessing stuff in their account. What is currently happening when following the official documentation is that after exchanging secret, token and adjusting the cluster config on the control plane, the data-plane retrieves all the namespaces, quotas and Service Accounts from the control plane (which are created by the
i guess). This leaves me with default Service Accounts in the data-plane for all the projects/domains where the
of the control plane is annotated. Obviously i want the
of the data-planes in there, which are completely unused so far in my setup. One way would be to just replace the default Service Account annotation with the correct flyte-user-role in the project/domains i need them. Is there a better or correct way of doing this?

Samhita Alla

03/09/2023, 5:28 AM
@Yee @Ketan (kumare3), can one of you please help Jan?

Jan Fiedler

03/09/2023, 10:37 AM
I went with overwriting the default service account in the data-plane for now:
kubectl annotate serviceaccount -n $FLYTE_PROJECT_NAME-$domain default <$ACCOUNT_ID:role/$FLYTE_USER_ROLE|$ACCOUNT_ID:role/$FLYTE_USER_ROLE> --overwrite
Still happy to hear, if there is correct way of doing this 🙂