Export all Kustomizations

Saves all Kustomizations as plain YAML, as a backup or to bootstrap 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

    Installs Flux and pushes the initial config to a GitHub repo

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

    Registers a git repo as a Flux source

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

    Registers a Helm chart repository as a Flux source

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

    Deploys a chart with a Flux HelmRelease resource

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

    The last 20 events in the flux-system namespace

all 29 flux commands