flux
by QuenchWorks
Flux, the CNCF GitOps toolkit: source, kustomize, helm and notification controllers with their CRDs, reconciling a cluster from Git, OCI and Helm repositories. Hardened by QuenchWorks, nonroot, CVE-gated, cosign-signed and pinned by digest.
About this chart
Flux
Flux keeps a cluster in step with Git, OCI and Helm repositories. This chart installs its four core controllers, and three optional ones, with their CRDs on QuenchWorks images, each built from source: nonroot, read-only root filesystem, 0 fixable CVEs, cosign-signed and pinned by digest.
| Controller | Version | Reconciles |
|---|---|---|
| source-controller | 1.9.5 | GitRepository, OCIRepository, HelmRepository, HelmChart, Bucket |
| kustomize-controller | 1.9.5 | Kustomization (with SOPS decryption) |
| helm-controller | 1.6.4 | HelmRelease |
| notification-controller | 1.9.4 | Provider, Alert, Receiver |
| image-reflector-controller (optional) | 1.2.5 | ImageRepository, ImagePolicy |
| image-automation-controller (optional) | 1.2.5 | ImageUpdateAutomation |
| source-watcher (optional) | 2.2.4 | ArtifactGenerator |
These are the versions Flux 2.9.5 ships. The three optional controllers are off by
default; turn one on with --set controllers.image-reflector.enabled=true (likewise
image-automation and source-watcher). Their CRDs are always installed. The
image-reflector keeps its tag database, and source-watcher its generated artifacts, in
an emptyDir, so both rebuild from their sources after a restart.
Install
helm install flux oci://ghcr.io/quenchworks/charts/flux -n flux-system --create-namespace
Then add a GitRepository and a Kustomization (NOTES.txt prints an example). The flux CLI
works against this install with --namespace flux-system.
Values
| Key | Default | Meaning |
|---|---|---|
controllers.<name>.enabled | true | turn a controller off |
controllers.<name>.extraArgs | [] | extra controller flags |
watchAllNamespaces | true | reconcile Flux objects in every namespace |
clusterReconciler.enabled | true | bind kustomize- and helm-controller to cluster-admin, as upstream does |
webhookReceiver.service.type | ClusterIP | the Service for Receiver webhooks |
logLevel | info | debug, info or error |
clusterReconciler.enabled: true gives the two appliers cluster-admin: they apply
whatever your repositories hold. To restrict them, set it to false and give each
Kustomization and HelmRelease a serviceAccountName with the roles it needs.
The CRDs ship in crds/, so Helm installs them once and does not upgrade or delete
them; apply a newer chart's crds/ by hand when upgrading across Flux minors.
The release gate installs the chart on kind and runs three real reconciliations: a GitRepository plus Kustomization that deploys podinfo, a HelmRelease that installs the QuenchWorks opa chart from its OCI registry, and a notification Provider and Alert, each of which must go Ready.
The chart depends on the quench-common chart from oci://ghcr.io/quenchworks/charts.
Deploy flux with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flux on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartflux is pinned at v0.0.15 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply