FluxCD
Prerequisites#
FluxCD requires a working Kubernetes cluster. If you have not already set up a cluster, please refer to the Getting-Started guide.
FluxCD#
FluxCD is designed to manage and automate the deployment of applications in your Kubernetes cluster using GitOps principles.
Installation#
Create a Git repository to store your Flux configuration files. This repository will be used by Flux to sync the desired state of your cluster.
Install the flux-cli on your local machine:
curl -s https://fluxcd.io/install.sh | sudo bashBootstrap Flux in your Kubernetes cluster:
flux bootstrap git \ --url=ssh://[email protected]/<your-username>/<your-repo>.git \ --private-key-file=<path-to-your-private-key> \ --branch=main \ --path=clusters/defaultReplace
<your-username>,<your-repo>, and<path-to-your-private-key>with your GitHub username, repository name, and the path to your SSH private key, respectively.Verify the installation:
flux eventsThis command will show you the events related to Flux and confirm that it is running correctly.