LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flux-get

Print the status of Flux resources

TLDR

List every Flux resource in all namespaces
$ flux get all --all-namespaces
copy
List Kustomizations and their status
$ flux get kustomizations
copy
Show which source each Kustomization uses
$ flux get kustomizations --show-source
copy
List HelmReleases
$ flux get helmreleases
copy
List GitRepository sources
$ flux get sources git
copy
Watch Kustomizations for changes
$ flux get kustomizations --watch
copy

SYNOPSIS

flux get kind [name ...] [options]

DESCRIPTION

flux get prints a table of Flux custom resources and their reconciliation status. Most kinds are plural (`kustomizations`, `helmreleases`, `alerts`). A name limits the table to that object.The default namespace is `flux-system`. --all-namespaces lists the kind in every namespace. --watch keeps the table open and refreshes it as objects change.Short aliases are accepted. `kustomizations` also accepts `ks` and `kustomization`.

PARAMETERS

-A, --all-namespaces

List the requested objects across all namespaces.
-w, --watch
After listing, watch for changes.
-l, --label-selector selector
Filter objects by label selector.
--status-selector condition=state
Filter by a status condition, for example `ready=false` or `ready!=true`.
--show-source
On `kustomizations`, print the source reference for each object.
--no-header
Skip the table header.
-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

all

List every Flux resource and its status.
kustomizations
Kustomization status. --show-source adds the source reference.
helmreleases
HelmRelease status.
sources git, sources helm, sources oci, sources bucket, sources chart, sources external, sources all
Status of GitRepository, HelmRepository, OCIRepository, Bucket, HelmChart, ExternalArtifact, or every source.
images policy, images repository, images update, images all
Status of ImagePolicy, ImageRepository, ImageUpdateAutomation, or every image-automation object.
alerts, alert-providers, receivers
Status of notification Alerts, Providers, and Receivers.
artifacts
Artifact object status, including generators.

INSTALL

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

CAVEATS

The table is a status summary, not the full object. Use `flux export` or `kubectl get` for the spec. Cluster access via kubectl is required. --watch runs until interrupted.

SEE ALSO

RESOURCES

Copied to clipboard
Kai