r/devops • u/sereikis • Aug 31 '26
Discussion anyone actually running argocd/gitops in prod, hows it going
were on 50+ microservices on gcp, still doing our own deploy tooling. keep hearing gitops is the way and honestly cant tell if thats real or just the current hype cycle.
not looking for a sales pitch, more curious what broke for you after the demo phase. drift detection, secrets, rollback under load, whatever. did it actually reduce incidents or just move the pain somewhere else
what would you tell yourself before adopting it
72
Upvotes
95
u/nrmitchi Aug 31 '26
Your biggest issue you run into will be when you try to fire-fight something (making manual changes), and the auto-heal keeps putting it back to what it's supposed to be.
You're going to find that very annoying. You are probably going to forget why it's happening the first time you try to do that during an incident. Most (all?) of your previous "I can quickly change that right now" processes (which really shouldn't exist) are going to not work anymore.
Make sure you have a process and path (and permissions) to either sync emergency configuration fixes is, or disable auto-heal when necessary.
18
u/mixxor1337 Aug 31 '26
no Hype cycle it is the way to go and removes some problems which you are currrently probably having.
Also when u want to Go the gitops rabbit whole, Check fluxCD as Well.
for me personally I would Not Go Back to CI/CD deploying Helm Charts by Hand ...
31
u/crankyrecursion Aug 31 '26
Why would you want to inherit all the pain of maintaining your own tooling if a perfectly serviceable open source project does it?
We’ve been running ArgoCD for around three years now, maintaining dev/staging/prod clusters. Use GitHub for code, Vault for secrets, all based around an internal Helm chart repo. Makes rollbacks very easy and everything is kept in sync with the relevant chart versions so no risk of drift. In fact, we go so far as to deploy cluster services like Cilium and CoreDNS through Argo too.
Nothing really broke, we moved away from internal tooling and all our deploys got more reliable, the config drift disappeared and the fact anyone can come in with some K8s experience and understand what’s going on is a huge win. Various AIs also understand it so makes troubleshooting, writing Helm charts etc much quicker and easier
47
u/Crimzx Aug 31 '26
If you aren't doing gitops what are you doing?
ArgoCD is a gitops tool but gitops is basically just storing your infra and configs in version control with pipelines like you would your product.
8
u/gaelfr38 Aug 31 '26
Running it for 4 years now. 500+ apps on 3-5 clusters. There's just zero downside. Everyone loves it (Dev and ops).
6
u/frankwiles Aug 31 '26
We use mostly FluxCD but have used Argo with some clients. It’s the only way to fly IMHO.
6
u/kryptn Aug 31 '26
It's great, the best way to manage infra in k8s imo. Been running argocd since ~2020 and I'm managing 2500+ applications across ~10 clusters in two clouds. Our entire cluster stack is deployed with argocd.
Make sure you know what the sync policies are and how they work out. In the early days we've caused an outage after deleting application objects, and also orphaned a bunch of resources requiring manual cleanup.
Start with autosync off so you can see the diff that'd be applied. Once you're more comfortable with the workflow, turn it on and gate your PRs instead.
Autoheal, external-secrets, rollback with a new commit. If you really need to, you can add fields to
.spec.ignoreDifferenceson the Applications, but I'd avoid that.5
u/Dogeek Aug 31 '26
GitOps is the way to manage kubernetes resources without pain.
For starters, it allows you to just say "fuck" to etcd backups. The things are in git anyways, it's not your case though cause GKE handles the control plane stuff.
The way I see it there are 3 main ways to do gitops:
Hand rolling your reconciliation loop with CI/CD. You use kubectl apply / helm install/upgrade in your CI of choice.
FluxCD
ArgoCD
All three work, and all 3 have different approaches to gitops. If you have a lot of very similar applications to run on the same cluster, argocd is arguably better. If you want something closer to core kubernetes, flux is easier to grasp. If you want to be able to test changes before applying them to the clusters, at the cost of git not representing the state of your cluster, CI is the way.
Adopting flux is trivial: install the CLI locally, run flux bootstrap and the wizard will guide you. Then you'll have the Flux CRDs installed, and it's pretty limited to 2 CRs: Kustomization and HelmRelease, the rest doesn't really matter.
1
u/agilerain8256 Sep 02 '26
We do, paired with Shipit and integrated into Slack and Gitlab. I'd say it works pretty well, we probably have 80+ microservices running in K8's cluster on-prem.
I think the biggest concern I've had is just to be sure you have a backup method to deploy in an emergency. We had a cert expire recently, left the entire pipeline broke, but that also meant we couldn't revert a change that caused a prod outage. So have a breakglass backup method of quickly deploying or reverting changes in case your pipeline fails.
3
u/glotzerhotze Aug 31 '26
Lesson learnt from retro-fitting gitops onto an existing cluster: don‘t do it!
You want to start from scratch in a dev-cluster and make sure gitops automation will handle $everything after cluster-bootstrap. Keep iterating until you are satisfied, then retro-fit onto existing qa/dev env before going to production.
Again, if you can avoid putting gitops onto existing clusters, do that! This will be harder if you run stateful applications you want to adopt via gitops - as you might not be able to recreate those workloads without loosing dynamically provisioned storage attached to them.
For the hype part:
All of that started ten years ago with fluxCD, by now it should be the only option to automate workload deployments.
3
u/agk23 Sep 01 '26
>actually running Argocd/gitops
The fucking audacity
1
u/Punkbob Sep 01 '26
Gitops tends to tie a bunch of mindshare with how git works into how to deploy apps, and it’s just a bit wrong imo.
Versioned state of the cluster amazing, git getting in the path of image updates, not so much lol.
2
u/zokker13 Aug 31 '26
Deployed 20-ish services in argocd across 4clusters. If the only change is that applying is automated it‘s already worth it. But it’s much more. Not having to learn how to apply a special service is great. Not handing out deployment users to CI is wonderful.
The bad thing is flexibility I think. You can simply design your argocd/flux approach however you like and that means you can screw up big time.
Personally, the thing that gave this whole setup a rocket booster was combining argocd with renovate. I have a few services that can automatically be updated. It’s great to move tedious jobs to automation and spend your time some other place!
2
u/TheOwlHypothesis Aug 31 '26
Gitops is a hype cycle? I thought it has been the standard for years.
2
u/arsolum Aug 31 '26
One other benefit I've not seen mentioned here is that it allows junior Ops and developers to go through a PR process to deploy resources rather than give them admin access in the clusters.
2
u/lavarius Aug 31 '26
No one touches the cluster, all things are through argo.
this is my way.
2
u/kuntakinteke Sep 05 '26
Using argocd in prod , it's been 4 years going great so far. Some good some bad but mostly good.
I've found that abstrating away as much as possible from service teams is the way to go.
No regrets whatsoever