Create a GitRepository source
Registers a git repo as a Flux source
flux create source git <name> --url=https://github.com/org/repo --branch=main -n flux-system
More flux commands
-
flux create source helm <name> --url=https://charts.example.com -n flux-systemRegisters 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 -20The last 20 events in the flux-system namespace
-
flux delete kustomization <name> -n <ns>Removes a Kustomization from the cluster; for a HelmRelease use flux delete helmrelease
-
flux create image update <name> --git-repo-ref=<repo> --git-repo-path=./deploy --checkout-branch=main --push-branch=main -n flux-systemUpdates image tags in git automatically when new images are pushed