This is a repository with an example of organizing a monorepo for multiple clusters using FluxCD tool.
The first version is described in the article here and the repository for it is located here
This is a new version that I want to update constantly.
- Create your Kubernetes cluster (my simple example for GKE available here, kind or minikube will work too)
- Clone this repo
- Bootstrap flux v2:
kubectl apply -f ./components/flux/prod/gotk-components.yaml
- Apply flux resource to sync this repo and your cluster
kubectl apply -f clusters/cluster-002/sync-code/flux-system/gotk-sync.yaml
- Check Weave gitops
forward port
kubectl -n flux-system port-forward svc/weave-gitops 9001:9001
login on http://localhost:9001
use admin:admin
- Uninstall flux
flux uninstall