flux2-sync

by Flux community

Helm chartv1.16.0App 2.10.0

A Helm chart for flux2 GitRepository to sync with

About this chart

flux2-sync

A Helm chart for flux2 GitRepository to sync with

This helm chart is maintained and released by the fluxcd-community on a best effort basis.

Source Code

Values

KeyTypeDefaultDescription
cli.affinityobject{}
cli.imagestring"ghcr.io/fluxcd/flux-cli"
cli.nodeSelectorobject{}
cli.tagstring"v2.10.0"
cli.tolerationslist[]
gitRepository.annotationsobject{}
gitRepository.labelsobject{}
gitRepository.spec.gitImplementationstring""Optional Determines which git client library to use. Defaults to go-git, valid values are (‘go-git’, ‘libgit2’).
gitRepository.spec.ignorestring""Optional Ignore overrides the set of excluded patterns in the .sourceignore format (which is the same as .gitignore). If not provided, a default will be used, consult the documentation for your version to find out what those are. Make sure to set this as yaml multiline string.
gitRepository.spec.includelist[]Optional Extra git repositories to map into the repository
gitRepository.spec.intervalstring"5m"The interval at which to check for repository updates.
gitRepository.spec.providerstring""The OIDC provider used for authentication. Valid values are generic, azure or github (defaults to generic when empty).
gitRepository.spec.recurseSubmodulesboolfalseOptional When enabled, after the clone is created, initializes all submodules within, using their default settings. This option is available only when using the ‘go-git’ GitImplementation.
gitRepository.spec.refobject{"branch":"master"}Optional The Git reference to checkout and monitor for changes, defaults to master branch.
gitRepository.spec.secretRefobject{}Optional The secret name containing the Git credentials. For HTTPS repositories the secret must contain username and password fields. For SSH repositories the secret must contain identity, identity.pub and known_hosts fields. For GitHub App authentication the secret must contain githubAppID, githubAppInstallationID and githubAppPrivateKey fields. If a secret.create is set, it will point to that one.
gitRepository.spec.suspendstring""Optional This flag tells the controller to suspend the reconciliation of this source.
gitRepository.spec.timeoutstring""Optional The timeout for remote Git operations like cloning, defaults to 20s.
gitRepository.spec.urlstring""The repository URL, can be an HTTP/S or SSH address.
gitRepository.spec.verifyobject{}Optional Verify OpenPGP signature for the Git commit HEAD points to.
kustomization.annotationsobject{}
kustomization.labelsobject{}
kustomization.spec.decryptionobject{}Optional Decrypt Kubernetes secrets before applying them on the cluster.
kustomization.spec.deletionPolicystring""Optional DeletionPolicy allows control over garbage collection when a Kustomization object is deleted.
kustomization.spec.dependsOnlist[]Optional DependsOn may contain a dependency.CrossNamespaceDependencyReference slice with references to Kustomization resources that must be ready before this Kustomization can be reconciled.
kustomization.spec.forceboolfalseOptional Force instructs the controller to recreate resources when patching fails due to an immutable field change. Defaults to false.
kustomization.spec.healthCheckslist[]Optional A list of resources to be included in the health assessment.
kustomization.spec.imageslist[]Optional Images is a list of (image name, new name, new tag or digest) for changing image names, tags or digests. This can also be achieved with a patch, but this operator is simpler to specify.
kustomization.spec.intervalstring"5m"The interval at which to reconcile the Kustomization.
kustomization.spec.kubeConfigobject{}Optional The KubeConfig for reconciling the Kustomization on a remote cluster. When specified, KubeConfig takes precedence over ServiceAccountName.
kustomization.spec.patcheslist[]Optional Strategic merge and JSON patches, defined as inline YAML objects, capable of targeting objects based on kind, label and annotation selectors.
kustomization.spec.pathstring""Optional Path to the directory containing the kustomization.yaml file, or the set of plain YAMLs a kustomization.yaml should be generated for. Defaults to ‘None’, which translates to the root path of the SourceRef.
kustomization.spec.postBuildobject{}Optional PostBuild describes which actions to perform on the YAML manifest generated by building the kustomize overlay.
kustomization.spec.prunebooltruePrune enables garbage collection. Defaults to true.
kustomization.spec.retryIntervalstring""Optional The interval at which to retry a previously failed reconciliation. When not specified, the controller uses the KustomizationSpec.Interval value to retry failures.
kustomization.spec.serviceAccountNamestring""Optional The name of the Kubernetes service account to impersonate when reconciling this Kustomization.
kustomization.spec.suspendstring""Optional This flag tells the controller to suspend subsequent kustomize executions, it does not apply to already started executions. Defaults to false.
kustomization.spec.targetNamespacestring""Optional TargetNamespace sets or overrides the namespace in the kustomization.yaml file.
kustomization.spec.timeoutstring""Optional Timeout for validation, apply and health checking operations. Defaults to ‘Interval’ duration
kustomization.spec.waitboolfalseOptional Wait instructs the controller to check the health of all the reconciled resources. When enabled, the HealthChecks are ignored. Defaults to false.
kustomizationlistobject{}Optional If you want multiple subdirectories which depend on each other in the same repo. Their name is derived from their path.
secret.createboolfalseCreate a secret for the git repository. Defaults to false.
secret.dataobject{}Data of the secret. For HTTPS repositories the secret must contain username and password fields. For SSH repositories the secret must contain identity, identity.pub and known_hosts fields. For GitHub App authentication the secret must contain githubAppID, githubAppInstallationID and githubAppPrivateKey fields. Values will be encoded to base64 by the helm chart.
secret.generateobject{"sshEcdsaCurve":"p521","sshKeyAlgorithm":"ecdsa"}Algorithm of keys to generate. If data object above is empty, and create is set to true. The Chart will generate the Git SSH key secret automatically based on the key algorithms that are set below.

Deploy flux2-sync with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flux2-sync on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartflux2-sync is pinned at v1.16.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply