Skip to content

CICD-299 · Flux CD bootstrap ​

Encyclopedia · Advanced GitOps and progressive delivery · All snippets

Previous · CICD-298 · Next · CICD-300

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites trusted configuration repository, test cluster and named GitOps controller or rollout controller.
  • Platforms kubernetes, local-lab.
  • Parameters GITHUB_OWNER, GITOPS_REPO.

2. Copy the snippet ​

bash
flux check --pre
flux bootstrap github --owner="${GITHUB_OWNER:?}" --repository="${GITOPS_REPO:?}" --branch=main --path=clusters/staging --personal

3. How it works ​

Bootstrap installs Flux components and writes their reconciliation configuration into the selected Git path.

4. Verify the result ​

Use an authorized personal repository and direct context checks on a staging cluster. Bootstrap installs controllers and commits configuration.

Validation syntax-validated (Bash parse). Status definitions.