Ansible Role: flux
This role installs and configures FluxCD in a Kubernetes cluster.
It uses the Flux Operator to deploy a FluxInstance to the Kubernetes cluster,
which in turn is configured to watch a GitLab repository for changes to a set of Kubernetes manifests.
Usage
The host to which this role is applied should have a valid kubeconfig file with cluster admin permissions. You can set the
KUBECONFIGenvironment variable to point to the kubeconfig file on the target host.When this role is first applied to a cluster, it will auto-generate a private key for the
FluxInstanceto pull from the GitLab repository. Watch the command-line output for instructions on how to add the corresponding public key as a GitLab Deploy Key.
Variables
Variable |
Required |
Description |
|---|---|---|
|
No |
Version of the |
|
No |
Kubernetes namespace to which the Flux operator and instance are deployed. |
|
No |
URL of the Flux operator Helm chart. |
|
No |
Version of the Flux operator Helm chart. |
|
No |
The Kubernetes cluster domain of the target cluster. |
|
No |
URL to the GitLab repository containing the Flux manifests. |
|
No |
Reference of the GitLab repository to use. |
|
Yes |
Relative path in the GitLab repository pointing to the Flux manifests. |
|
No |
The Flux distribution version used by the |