Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : gotk-components.yaml repetition in multiple clusters #90

Open
bluedog13 opened this issue Oct 27, 2022 · 2 comments
Open

Question : gotk-components.yaml repetition in multiple clusters #90

bluedog13 opened this issue Oct 27, 2022 · 2 comments

Comments

@bluedog13
Copy link

bluedog13 commented Oct 27, 2022

In the repo, why is the gotk-components.yaml file being created twice for the clusters production and staging? Is it because we are creating a seperate "pods" for respective controllers for both the production and staging environments to ensure common controllers (source, kustomize, helm, notification) won't be a problem?

Production
---
flux2-multi-tenancy/clusters/production/flux-system/gotk-components.yaml
flux2-multi-tenancy/clusters/production/flux-system/gotk-sync.yaml
flux2-multi-tenancy/clusters/production/flux-system/kustomization.yaml

Staging
---
flux2-multi-tenancy/clusters/staging/flux-system/gotk-components.yaml
flux2-multi-tenancy/clusters/staging/flux-system/gotk-sync.yaml
flux2-multi-tenancy/clusters/staging/flux-system/kustomization.yaml

From what I understand, that file will be identical and only the gotk-sync.yaml and kustomiation.yaml files will be different to point to the respective folders to deploy the required resources?

Would something like below make sense

flux2-multi-tenancy/clusters/gotk-components.yaml


Production
---
flux2-multi-tenancy/clusters/production/flux-system/gotk-sync.yaml
flux2-multi-tenancy/clusters/production/flux-system/kustomization.yaml

Staging
---
flux2-multi-tenancy/clusters/staging/flux-system/gotk-sync.yaml
flux2-multi-tenancy/clusters/staging/flux-system/kustomization.yaml

Thanks

@bluedog13 bluedog13 changed the title Question : Question : gotk-components.yaml repetition in multiple clusters Oct 27, 2022
@stefanprodan
Copy link
Member

We don't recommend reusing the Flux manifests across clusters. If the upgrade fails, all your clusters will be impacted. Instead you would upgrade staging first, check that Flux is Ok there and then do production. Having said that, there is nothing stopping you from having a single gotk-components.yaml which gets imported in all the cluster overlays. You can use the Flux action to automatically upgrade all your clusters at the same time.

@bluedog13
Copy link
Author

Thank you for the answer. This makes perfect sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants