How do you bootstrap Flux on a cluster?
IntermediateConceptRepo Structure, Flux, Scaling & DR
Answer
export GITHUB_TOKEN=<pat>
flux bootstrap github \
--owner=my-org --repository=fleet \
--branch=main --path=clusters/prod-eu \
--personal=false
It installs Flux controllers, commits their manifests to clusters/prod-eu/flux-system in the repo, and creates a GitRepository and Kustomization that make Flux manage itself from Git. Afterwards flux get kustomizations and flux reconcile kustomization flux-system --with-source are the daily commands.
More on Repo Structure, Flux, Scaling & DR
Why separate the application source repo from the config (GitOps) repo?BeginnerFolders per environment or branches per environment?IntermediateHow do you promote a release from staging to production in GitOps?IntermediateWhat does a typical multi-team config repo layout look like?IntermediateHow does Flux differ from Argo CD architecturally?IntermediateWhen would you pick Flux over Argo CD, and vice versa?Intermediate