Installation and Bootstrap

How flux bootstrap differs from flux install, why committing Flux own manifests to Git makes it self-managing, and the operational lifecycle: auth choices, cluster path layout, upgrades, air-gapped installs, and uninstall.

Overview

Install versus bootstrap

There are two ways to get Flux onto a cluster, and the difference is the difference between a demo and a production installation. flux install applies the GitOps Toolkit controllers and stops. flux bootstrap does that, then commits the same manifests into Git and configures Flux to reconcile the directory it just wrote.

After bootstrap, Flux is managing Flux. The manifests sit under --path in the Git repository, a GitRepository and a Kustomization point Flux at that directory, and every interval Flux reconciles its own directory from Git.

Both commands install the controllers, CRDs and RBAC. Only bootstrap writes to Git, and only bootstrap leaves Flux managed by Flux. That is why bootstrap, not install, is the production answer.

Key concepts

  • flux install
  • flux bootstrap
  • Self-management
  • The gotk files
  • --path
  • --token-auth versus deploy key
  • --components and --components-extra
  • flux check

Interview questions

  • What is the difference between flux install and flux bootstrap, and why does self-management matter?
  • Walk through the repository layout bootstrap generates and how you would customize the controllers.
  • Compare the authentication options for bootstrap: PAT, deploy key, and GitHub App.
  • How do you upgrade Flux, and how do you install it in an air-gapped environment?
  • How do you uninstall Flux, and what happens to the applications it was managing?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio