Export all Flux resources

Backup current Flux config as plain YAML for bootstrapping another cluster

flux export kustomization --all > clusters/cluster.yaml

tool
flux29 commands
tags
fluxconfig

More flux commands

  • flux bootstrap github --owner=<org> --repository=<repo> --branch=main --path=clusters/production --personal

    Install Flux and push initial config to GitHub repo

  • flux create source git <name> --url=https://github.com/org/repo --branch=main -n flux-system

    Register a git repo as a Flux source

  • flux create source helm <name> --url=https://charts.example.com -n flux-system

    Register a Helm chart repository as a Flux source

  • flux create helmrelease <name> --source=HelmRepository/<repo> --chart=<chart> --chart-version='>=1.0.0' -n <ns>

    Deploy a chart via Flux HelmRelease resource

  • kubectl get events -n flux-system --sort-by='.lastTimestamp' | tail -20

    Recent events from the flux-system namespace

all 29 flux commands