Red HatLuiz Bernardo Levenhagen, Christian StarkExplainer
Scaling multicluster GitOps with argocd-agent and Red Hat Advanced Cluster Management for Kubernetes
Summary
Argo CD has matured into a widely adopted GitOps tool, but scaling it across multiple clusters introduces challenges around security and network topology. The argocd-agent, now generally available with Red Hat Advanced Cluster Management for Kubernetes 5, addresses these challenges through a pull-based architecture. In managed mode, the agent runs on spoke clusters and establishes an outbound-only gRPC connection to the hub principal, eliminating the need for custom ingress rules. The GitOps Add-on automates bootstrapping of both principal and agent, while the GitOpsCluster resource ties together Argo CD, placement, and operating mode. This design keeps reconciliation on the spoke even if the hub goes offline, resolving the classic trade-off between scalability and security in multicluster GitOps.
Context
Scaling GitOps across multiple Kubernetes clusters introduces challenges around security, network topology, and single points of failure. The argocd-agent, integrated with Red Hat Advanced Cluster Management for Kubernetes, provides a pull-based architecture that shifts reconciliation to target clusters while maintaining centralized control. This post explains the managed mode, the GitOps Add-on for automated bootstrapping, and the GitOpsCluster resource that ties together placement and configuration.
Approach / What changed
The approach uses argocd-agent in managed mode, where a principal component on the hub cluster communicates via outbound-only gRPC with agents on spoke clusters. The GitOps Add-on automates bootstrapping of principal and agent using Advanced Cluster Management’s Add-on Framework. The GitOpsCluster resource defines the Argo CD server, operating mode, and placement to auto-discover and sync destination clusters. ApplicationSets use destination-based mapping to route applications to the correct agent.
Takeaways
In managed mode, the hub is the single entry point for configuration and auditing, while reconciliation runs on each spoke cluster.
The agent uses a bi-directional gRPC connection that is outbound-only from the spoke, eliminating the need for custom network topologies or ingress rules.
The GitOps Add-on automates the entire bootstrapping lifecycle of both principal and agent, and works with both Red Hat OpenShift and CNCF-certified Kubernetes distributions, including disconnected environments.
FAQ
What is the difference between managed and autonomous mode?
In managed mode, all configuration is authored on the hub and pushed to agents on spoke clusters, which reconcile locally. In autonomous mode, configuration is authored on the spoke clusters themselves, and the hub only receives status for visibility. Managed mode is preferred for centralized control and compliance, while autonomous mode suits air-gapped or fully autonomous environments.
How does the GitOpsCluster resource work?
The GitOpsCluster resource gathers all information required by Argo CD and Advanced Cluster Management, including which Argo CD server to use, the operating mode (e.g., managed), and a Placement reference to auto-discover and sync destination clusters. It provides a single place to define these settings and ensures ApplicationSets can reference remote clusters by name.
What are the trade-offs of hybrid mode?
Hybrid mode extends managed mode by enabling the hub controller to reconcile apps on the hub itself. Trade-offs include a larger hub footprint (more work for the hub), higher privileges needed on the hub, and a critical rule: the GitOpsCluster must never select the hub cluster (local-cluster) to avoid collisions between the two reconciliation paths.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.