multi-tenancy icon indicating copy to clipboard operation
multi-tenancy copied to clipboard

[Question] Can flux support multi-tenancy within a monorepo?

Open alwaysastudent opened this issue 5 years ago • 2 comments

Can we house multiple namespace specific directories within a monorepo and have a single privileged Flux Operator deploy these applications to their corresponding namespaces?

alwaysastudent avatar May 27 '20 01:05 alwaysastudent

Yes that's how Flux works by default.

stefanprodan avatar May 27 '20 08:05 stefanprodan

@stefanprodan - Thank you so much for the reply.

I have a related question, do you have any advice or opinions on how to manage multi-cluster deployments?

Currently, we place all the manifests for all the namespaces in a monorepo. We just have a single branch housing multiple cluster-specific directories. This is a management nightmare sometimes since we get divergent environments and duplicate definitions. We are thinking about a multi-branch approach, but that would bring in another issue of divergent branches and merge nightmares.

Do you have any opinions on how to tackle this? Preferably we want any changes to be tested in the sandbox cluster before it goes into our 2 staging clusters and then to 8 different production clusters. All these clusters are unique and backed by different cloud providers, so they require different settings at times. But still, we want them to go through a promotional process.

alwaysastudent avatar May 27 '20 19:05 alwaysastudent