Delete a Flux resource
Removes a Kustomization from the cluster; for a HelmRelease use flux delete helmrelease
flux delete kustomization <name> -n <ns>
More flux commands
-
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
-
flux logs --kind=kustomize-controller -n flux-system --tail=50Prints the last 50 log lines of a Flux controller
-
flux create image policy <name> --image-ref=<image-repo> --select-semver='>=1.0.0' -n flux-systemDefines which image tags Flux should track for automation
-
flux create source oci <name> --url=oci://reg/repo --tag-semver='>=1.0.0' --interval=5mTracks an OCI artifact by semver range instead of git, so GitOps runs straight from a registry
-
flux push artifact oci://reg/manifests:$(git rev-parse --short HEAD) --path=./manifests --source=$(git config --get remote.origin.url) --revision=$(git rev-parse HEAD)Packs manifests into an OCI artifact tagged by commit and adds source and revision metadata