GitOps, CI/CD and automation ยท Practice and architecture
Kubernetes GitOps: how Argo CD and Helm work together
Helm renders manifests, Argo CD reconciles the state declared in a repository, and CI builds and tests artifacts. These roles complement one another when different tools are not trying to manage the same resource at the same time.
What belongs in CI and what belongs in Argo CD?
Use CI to build, test and produce a traceable image version. Record which version should run in the environment configuration repository. Argo CD observes that declaration and applies the agreed sync policy.
If a pipeline deploys directly while Argo CD owns the same resource, an apparently successful change may be reverted shortly afterward. Assign one owner to each resource.
Separating the chart from environment values
A chart describes the application pattern, while environment values set its configuration. Review the rendered output because similar-looking settings can produce different resources in test and production. Do not store secret values in Git.
What to validate before production
Exercise a successful deployment, a faulty version and a change outside the normal workflow. Rolling back an application version is usually simpler than undoing a data change, so cover those situations separately.