← All cheatsheets
$ flux get all -ABootstrap Flux, manage Git and Helm sources, reconcile Kustomizations and HelmReleases, and trace what Flux deployed.
Install and bootstrap
flux check --preCheck the cluster meets Flux requirementsflux bootstrap github --owner=$GITHUB_USER --repository=fleet-infra --branch=main --path=./clusters/my-cluster --personalBootstrap Flux into a GitHub repoflux checkVerify Flux controllers are healthyflux get all -AShow every Flux object and its statusflux uninstallRemove Flux from the clusterSources
flux create source git podinfo --url=https://github.com/stefanprodan/podinfo --branch=master --interval=1m --export > podinfo-source.yamlGenerate a GitRepository manifestflux get sources git -AList Git sourcesflux create source helm bitnami --url=https://charts.bitnami.com/bitnami --interval=1hAdd a Helm repository sourceflux get sources helm -AList Helm sourcesflux reconcile source git flux-systemFetch the latest commit nowKustomizations
flux create kustomization podinfo --source=GitRepository/podinfo --path="./kustomize" --prune=true --interval=5m --target-namespace=default --exportGenerate a Kustomization manifestflux get kustomizations -AList Kustomizations and their revisionflux reconcile kustomization flux-system --with-sourcePull Git and apply nowflux suspend kustomization podinfoPause reconciliationflux resume kustomization podinfoResume reconciliationflux diff kustomization podinfo --path ./kustomizePreview changes before pushingHelm releases
flux create helmrelease redis --source=HelmRepository/bitnami --chart=redis --chart-version="20.x" --target-namespace=dataCreate a HelmReleaseflux get helmreleases -AList HelmReleasesflux reconcile helmrelease redis -n flux-systemUpgrade the release nowDebugging
flux logs -A --level=errorShow controller errorsflux events -AShow recent Flux eventsflux tree kustomization flux-systemShow what a Kustomization managesflux trace podinfo --kind=Deployment --api-version=apps/v1 -n defaultFind which source deployed an object