Flux multi-tenancy concern #4935
-
I have enabled flux multi-tenancy form the community helm chart and i have a strange situation (maybe this is normal) I create kustomization in namespace flux-central with serviceAccountName flux-central, this kustomization role is to deploy configmaps in flux-apps namespace. when i apply the kustomization it shows dry-run error message that the service account flux-central is not able to spawn configmaps in flux-apps which is perfect. when i assign role cluster-admin in namespace flux-apps to flux-central svc then it works fine, the strange thing that this serviceaccount flux-central is not even there. so the dry run makes sense but now i am wondering which serviceaccount is actually applying the resources. is the whole multitenancy just happens in the dry-run and then applying the resources will be done using some other service account. sorry for my long question, i just wanted to understand how this works. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
How did you assigned the role? |
Beta Was this translation helpful? Give feedback.
Flux uses the Kubernetes impersonation API, this API relies on bindings, it will not look for SA objects. It is a good practice to create the SA but not required at apply time.