LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flux-create

Create or update Flux custom resources from the command line

TLDR

Create a Git source
$ flux create source git my-repo --url https://github.com/org/repo --branch main
copy
Create a Kustomization to sync a path from a source
$ flux create kustomization my-app --source my-repo --path ./k8s
copy
Create a HelmRelease
$ flux create helmrelease my-release --chart mychart --source HelmRepository/myrepo
copy
Export YAML to stdout instead of applying to the cluster
$ flux create source git my-repo --url https://github.com/org/repo --branch main --export
copy
Create a Git authentication secret
$ flux create secret git my-git-secret --url https://github.com/org/repo --username user --password pass
copy

SYNOPSIS

flux create kind name [options]

DESCRIPTION

flux create generates Flux custom resources (GitRepository, Kustomization, HelmRelease, HelmRepository, Secret, etc.) without writing YAML by hand.By default the resource is applied to the cluster. Pass --export to print the resource as YAML on stdout instead (for committing to Git or piping to other tools).It supports the major Flux resource kinds and many common configuration options.

PARAMETERS

--export

Export the resource in YAML format to stdout instead of applying it to the cluster.
--interval duration
Source sync interval (default `1m0s`).
--label key=value
Set labels on the resource (repeatable / comma-separated).
-n, --namespace ns
Namespace scope (default `flux-system`).

COMMON KINDS

source git, source helm, source oci

Create source repositories.
kustomization
Define a Kustomize sync.
helmrelease
Deploy a Helm chart.
secret git, secret helm
Create credentials.
image, receiver, alert, tenant
Image automation, notification receivers, alerts, and multi-tenancy helpers.

SEE ALSO

RESOURCES

Copied to clipboard
Kai