CI/CD and GitOps Integration
Driving Helm through GitHub Actions and GitLab CI pipelines, integrating with Argo CD and Flux for GitOps, and using helm template for diff-based deployment workflows.
Overview
Push versus pull
Integrating Helm into CI/CD pipelines and GitOps workflows is where chart knowledge becomes production engineering. Two fundamentally different models exist: push-based, where a CI pipeline runs helm upgrade against the cluster, and pull-based GitOps, where Argo CD or Flux watches a Git repository and continuously reconciles the cluster to match it.
The two models trade setup effort against drift handling. The push model, where CI runs helm upgrade, is simpler to set up, but it has no drift detection until the next deploy and no drift correction at all. The pull model needs a controller to run, and in return it detects drift continuously and corrects it automatically.
> [!WARNING] In the push model, a manual edit to a Deployment or ConfigMap goes unnoticed until the next deploy.
Key concepts
- Push-based deployment
- Pull-based GitOps (Argo CD / Flux)
- Argo CD Helm rendering model
- Flux HelmRelease (native Helm semantics)
- helm diff plugin
- OIDC for CI authentication
Interview questions
- Write a GitHub Actions workflow step that deploys a Helm chart to a Kubernetes cluster securely.
- Explain how Argo CD deploys a Helm chart and how it differs from running helm install.
- How do you update a deployed application's image tag in a GitOps workflow?
- How does Flux HelmRelease differ from Argo CD Application for Helm deployments?
- How do you implement a helm diff step in CI for production safety?
- What authentication pattern should CI use to deploy to Kubernetes, and why?
Sign up free to read the full topic
More DevOps topics
- Buildpacks, Jib & ko
- C++ Dependency Management with Conan and vcpkg
- C++ Test Automation and Coverage
- Chaos Engineering
- Chart Dependencies
- ChatOps and Self-Service Release Bots
- CircleCI
- Cloud-Native IaC
- Cluster API and Declarative Cluster Lifecycle
- CMake for Cross-Platform C++
- CNCF Landscape & Cloud Native Ecosystem
- Configuration Drift
Start free on Cariara · Coding problems · System design studio