This repository contains examples for the ArgoCD/GitOps certification workshops.
Take the certification yourself at https://codefresh.io/courses/get-gitops-certified/
- Responsible for cloning Git repository, keeping it up to date and Generating Manifests using the appropriate tool
- uses
argocd-repo-serverto get generated Manifests and Kubernetes API Server to get actual cluster state - Polls Git every
3 minutesbut can be changed by modifyingtimeout.reconcilliationinargocd-cm - For HA in case there's too much memory being used, the number of replicas can be incremented and the environment variable
ARGOCD_CONTROLLER_REPLICASshould match that number
- Manual or automatic sync
- Auto pruning of resources (Automatic Sync)
- Self heal of cluster (Automatic Sync)
- If Sync is set to automatic then argo applies latest changes on GitHub
- Auto-Pruning defines what should be done when files are removed from Git
- If enabled ArogCD will remove respective resources in cluster as well
- If Disabled ArgoCD Will never remove anything from the cluster
- Self-heal defines the behavior of argo when changes are made directly on the cluster
- If enabled then ArgoCD Will revert the cluster changes and stick to the defined state in Git (Which is the best practice)
- All ArgoCD related resources are deployed Via ArgoCD
- All ArgoCD related
ApplicationsorApplicationSetDefinition are allowed to only be deployed in the namespace where ArgoCD is deployed to - Use Webhooks in tandem with ArgoCD Reconciliation
- This way should the webhooks fail or you are operating within an environment behind a firewall - the webhook that cannot reach a deployment will continue as expected