Kubernetes
LinkedIn Builds Custom GitOps Engine to Replace Argo CD at Scale
Seeking better performance and reliability across 250+ Kubernetes clusters, LinkedIn engineered its own deployment system, seeing infrastructure failures drop by 94% despite tripling deployment volume.
InfoQ
LinkedIn has moved away from Argo CD and deployed a custom-built GitOps engine to handle application deployments across its sprawling infrastructure. The new system orchestrates roughly 4,000 services running on over 250 Kubernetes clusters, processing more than 100,000 deployments weekly. The results are striking: infrastructure failures attributed to the deployment system fell from 925 to 63 incidents, while median detection and resolution time for failed deployments improved from 16.1 to 2.45 minutes—all while deployment volume grew 3.7 times.
Why LinkedIn Built Its Own#
LinkedIn started with one Argo CD instance per cluster, a pattern that worked initially but revealed limitations as scale increased. The company identified seven concrete problems with the open-source tool at their level of operation.
Observability gaps meant that sync and health status couldn't be reliably linked to specific deployments. Stale cache entries in Argo CD's repository server could also cause apparently "Synced and Healthy" applications to resolve to unintended versions.
Two issues went deeper—into Argo CD's architecture itself. The system maintains a single watch per resource type across all applications. Because LinkedIn's clusters have low diversity in resource types, activity from one application could create etcd churn that slowed sync operations for everything else. In testing, a cluster with 60,000 pods synced in under three minutes, but the same cluster with over 80,000 pods took more than ten.
The second architectural constraint involved Kubernetes' server-side-apply PATCH mechanism. When an object accumulates more than ten distinct field managers, Kubernetes truncates the managedFields list and loses track of ownership. In LinkedIn's machine learning workloads—which deploy multiple containers per pod—a container removed from the manifest could persist on the running pod without triggering an error.
Additional friction came from required controller restarts whenever Custom Resource Definitions changed schema across the fleet, CRD-specific state mismatches that didn't reflect real drift, and error messages buried in verbose logs.
The Custom Engine Architecture#
LinkedIn evaluated Flux but concluded it shared the same centralized controller paradigm as Argo CD. Instead, the company built a GitOps engine as a library, with each deployment running in its own pod and no shared controller state between instances.
The design replaces Argo CD's PATCH-based updates with PUT operations for full object replacement, retrying on resource version conflicts with exponential backoff. To detect actual drift, the system performs a three-way comparison between the live object, the previously deployed manifest, and the newly rendered manifest. When genuine drift is found, the deployment fails. The same pod then watches the object's status until it either converges or times out, with the API server unwrapping error details for users.

