Software Development Community Question

What are the risks of using "GitOps" with ArgoCD for production deployments?

Posted on 2024-01-12 • In Software Development • By Christopher Taylor

We are considering moving to a GitOps model where our Kubernetes cluster state is strictly tied to our Git repository using ArgoCD. It sounds great for audit trails, but I’m worried about "Config Drift" and what happens if Git goes down. Are there hidden dangers in this approach?

3 Answers 5,454 Views

All answers to this question 3 Answers

Elizabeth Martinez Answered on 2024-03-18
Answered

The biggest risk of GitOps is "Manual Override." If someone makes an emergency change directly via kubectl, ArgoCD will see the drift and immediately overwrite it with what is in Git. This can be dangerous during an active incident if the person fixing the issue forgets to update the repo. However, the benefit is that your Git repo is always a "Single Source of Truth." If your cluster is deleted, you can recreate the entire environment in minutes just by pointing ArgoCD at your repo. To mitigate Git downtime, ensure you have local cached copies of your manifests and use a highly available Git provider with redundant regions.

Richard Clark Answered on 2024-04-05
Answered

If ArgoCD automatically syncs every change, how do you handle "Secrets" like API keys? You obviously can't store them in plain text in a Git repository for GitOps to work.

Paul Nelson Commented on 2024-04-12
Commented

Richard, you should never put raw secrets in Git. The standard solution is to use "Sealed Secrets" (Bitnami) or an external secret operator that integrates with HashiCorp Vault or AWS Secrets Manager. You store a "Secret Reference" or an encrypted blob in Git, and a controller inside the Kubernetes cluster decrypts it or fetches the value at runtime. This allows you to maintain the GitOps flow for your configuration while keeping your sensitive credentials secure and compliant with industry standards like SOC2 or PCI-DSS.

Nancy White Answered on 2024-05-20
Answered

We found that GitOps actually reduced our "Config Drift" significantly because the system is self-healing. It’s much safer than the old "Push" based Jenkins deployments.

Christopher Taylor Commented on 2024-05-23
Commented

I agree with Nancy. The "Pull" model of ArgoCD is much more resilient. It’s better to have a system that constantly reconciles itself than one that only checks in during a deployment.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.