Interview Prep/GitOps & Argo CD/Repo Structure, Flux, Scaling & DR

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repo Structure, Flux, Scaling & DR