Multicluster environments #766
-
Consider the following use case: The key point is that the sync process on all clusters should be considered as a single unit. If a deployment on one cluster fails, the whole deployment/sync process should fail (specifying that it was successful on Asia and America clusters, but failed in EMEA). I want to see the state of this GitOps setup in one place (not jumping on clusters) saying that it is in sync on these clusters, healthy on that cluster and out of sync on that one. Is there any design considerations addressing this multi cluster use case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Flux 2 supports these use-cases via its Remote Apply Feature, Path+Ref specific Sources, and Events/Metrics. Remote SyncFlux can ensure workloads are applied, health-checked, and garbage-collected in remote clusters. These two demos do remote applies from a central management cluster:
Configuring apps for environments/namespaces/clustersWe have this example regarding releasing apps to multiple environments and clusters
Separate paths in a Source can be used to modify a kustomize base (or other manifest generator). Environment specific tags can be used for the GitRepository ref alongside those paths to release the desired version of each environment separately. Viewing all sync info from a single placeWhen using a management cluster /w remote sync via the Kustomization or HelmRelease This data can also be scraped from the controllers via Prometheus and displayed in a Grafana Dashboard. You can also hook up |
Beta Was this translation helpful? Give feedback.
Flux 2 supports these use-cases via its Remote Apply Feature, Path+Ref specific Sources, and Events/Metrics.
Remote Sync
Flux can ensure workloads are applied, health-checked, and garbage-collected in remote clusters.
See these docs for Cluster API considerations:
spec.kubeConfig
spec.kubeConfig
These two demos do remote applies from a central management cluster:
ClusterAPI + Flux + GPG verification
Repo: https://github.com/stealthybox/capi-flux-demo
GitOpsDays Video: https://www.youtube.com/watch?v=7W27tAv7Tvs
Multi-Cluster CNI management /w DNS Mesh & Route Sharing
Repo: https://github.com/stealthybox/multicluster-gitops
KubeCon Video: https://youtu.be/…