Flux
FluxCD is deployed on my Talos Kubernetes node to adopt a GitOps approach to deploying applications on Kubernetes. My GitHub repository is the source of truth for Kubernetes applications I have deployed.
What is GitOps?
GitOps is a way of managing your infrastructure and applications so that whole system is described declaratively and version controlled (most likely in a Git repository), and having an automated process that ensures that the deployed environment matches the state specified in a repository.
Prerequisite
Install the flux CLI:
Deploying the Flux Controllers
-
Export the GitHub PAT:
-
Deploy the Flux controllers:
-
Verify that the Flux controllers are reconciled and deployed successfully:
Upgrading Flux
-
Upgrade the
fluxCLI: -
Update the Flux manifest:
-
Commit and push the changes:
-
Force flux to upgrade immediately: