LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flux-suspend

Suspend reconciliation of Flux resources

TLDR

Suspend a Kustomization
$ flux suspend kustomization podinfo
copy
Suspend all Kustomizations in the current namespace
$ flux suspend kustomization --all
copy
Suspend a HelmRelease
$ flux suspend helmrelease podinfo
copy
Suspend a GitRepository source
$ flux suspend source git my-repo
copy
Suspend an ImageUpdateAutomation
$ flux suspend image update my-automation
copy

SYNOPSIS

flux suspend kind [name ...] [options]

DESCRIPTION

flux suspend disables reconciliation of a Flux custom resource. Controllers stop applying Git, Helm, OCI, or image-automation changes for that object until it is resumed with `flux resume`.The resource name is required unless --all is set, which suspends every matching object in the namespace (default `flux-system`). Multiple names may be given in one invocation.Short kind aliases such as `ks` for kustomization and `hr` for helmrelease are accepted.

PARAMETERS

--all

Suspend all resources of the given kind in the namespace.
-n, --namespace ns
Namespace scope for the CLI request (default `flux-system`).
--timeout duration
Timeout for the operation (default `5m0s`).
--kubeconfig file
Path to the kubeconfig file.
--context name
Kubeconfig context to use.

KINDS

kustomization

Suspend a Kustomization.
helmrelease
Suspend a HelmRelease.
source git, source helm, source oci, source bucket, source chart
Suspend a GitRepository, HelmRepository, OCIRepository, Bucket, or HelmChart.
image policy, image repository, image update
Suspend ImagePolicy, ImageRepository, or ImageUpdateAutomation objects.
alert, alert-provider, receiver
Suspend notification Alerts, Providers, and Receivers.

INSTALL

sudo apk add flux
copy
brew install flux
copy
nix profile install nixpkgs#flux
copy

CAVEATS

Suspension is stored on the live cluster object. GitOps will restore the previous spec if a source still defines `spec.suspend: false` (or omits it) and a controller reconciles that source. Cluster access via kubectl is required.

SEE ALSO

RESOURCES

Copied to clipboard
Kai