Skip to content

Open Cluster Management for multi-cluster Kubernetes fleets

Concept overview of Open Cluster Management (OCM) — hub-and-spoke topology, klusterlet agent, ManifestWork, ManagedClusterSet, and placement strategies.

You operate dozens of Kubernetes clusters and the answer to “how do I roll a config change to all of them” is currently “GitOps in each cluster, hope for consistency”. Open Cluster Management (OCM) is the upstream project (and the open-source core of Red Hat ACM, IBM Cloud Pak) that gives you a hub-and-spoke control plane for the fleet — clusters register with the hub, the hub pushes manifests with placement strategies, and the agent on each spoke applies them. This article is the mental model and what OCM actually gives you that GitOps alone does not.

How to verify

The hub cluster runs the OCM hub controllers:

kubectl -n open-cluster-management get pods
kubectl -n open-cluster-management-hub get pods

Registered clusters appear as ManagedCluster on the hub:

kubectl get managedclusters
kubectl get managedclustersets

Each spoke runs the klusterlet agent:

# on a spoke cluster
kubectl -n open-cluster-management-agent get pods

Work pushed from the hub appears as ManifestWork on the hub and is rendered on the spoke:

# hub
kubectl get manifestwork --all-namespaces
# spoke
kubectl get appliedmanifestwork -A

What’s happening

OCM uses a hub-and-spoke architecture with explicit registration. Each managed cluster runs a small agent called the klusterlet that connects out to the hub (so spokes do not need to be reachable from the hub — important for clusters in private networks, behind NAT, on-prem). The hub does not run workloads; it stores fleet state and emits work for the spokes.

The core CRDs:

  • ManagedCluster — a registered spoke. Status reports cluster version, available resources, and conditions.
  • ManagedClusterSet — a group of ManagedClusters. RBAC and placement target sets, not individual clusters.
  • Placement — a query that selects clusters from one or more ClusterSets based on labels, claims, or numeric scores. Returns a PlacementDecision.
  • ManifestWork — a manifest payload bound to a single managed cluster. The klusterlet pulls it and applies the manifests locally.
  • ManagedClusterAddOn — install a fleet-wide addon (Submariner, policy framework, application lifecycle) onto specific spokes.

The contrast with Argo CD multi-cluster and Flux multi-tenant is meaningful. Argo CD/Flux push to clusters from the controller — they require the controller to reach every cluster. OCM is pull-based: each spoke initiates the connection, which is the only architecture that scales to clusters behind firewalls.

Components

  • OCM hub controllers. Run on the hub, host all the CRDs, validate registration requests (CertificateSigningRequest per cluster).
  • klusterlet — the agent on each spoke. Has two components: registration-agent (handshake, status), work-agent (pulls ManifestWork, applies manifests).
  • Addon framework. Lets third-party tools (Submariner, policy controllers, observability) plug into OCM as ManagedClusterAddOns instead of requiring per-cluster install.
  • Policy framework. A separate set of CRDs (Policy, PlacementBinding) layered on top of OCM for compliance — author once, target many.

When OCM fits

  • You manage 10+ clusters and need a queryable model of “where do my clusters live, what version, what compliance state”.
  • Some clusters are unreachable from your central network (edge, on-prem, customer-owned).
  • You need fleet-level placement: “roll this version to 10% of EU clusters first, monitor, then expand”.
  • You want policy compliance reporting across clusters without each cluster reporting separately.

When OCM is overhead

  • You have three clusters reachable from a central network. Argo CD with cluster credentials does fine. See argocd-applicationset-generators.
  • You don’t need fleet placement — you want every cluster to look identical. GitOps with a shared repo handles that.
  • The team is small and adding another control-plane piece outweighs the value.

How a placement works in practice

apiVersion: cluster.open-cluster-management.io/v1beta1
kind: ManagedClusterSet
metadata:
  name: production
spec:
  clusterSelector:
    selectorType: ExclusiveClusterSetLabel
---
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
metadata:
  name: prod-eu
  namespace: ops
spec:
  clusterSets: [production]
  predicates:
    - requiredClusterSelector:
        labelSelector:
          matchLabels:
            region: eu
  numberOfClusters: 5
  prioritizerPolicy:
    mode: Additive
    configurations:
      - scoreCoordinate:
          builtIn: ResourceAllocatableMemory
        weight: 1

The Placement returns the 5 EU clusters with the highest available memory. A ManifestWork or addon then targets the placement, and OCM materialises the work onto those clusters.

Operational notes

  • Registration is mutual TLS. The spoke issues a CSR to the hub; an operator approves it. Automate approval with caution — auto-approval based on namespace + label is the common pattern but a misconfigured Cluster Issuer can leak.
  • klusterlet upgrades happen via the hub. The hub pushes a new image for the agent; the agent restarts itself. A bad upgrade can cut spokes off the hub. Test upgrades on a canary cluster set first.
  • ManifestWork has a size limit. Pushing very large manifests (Helm-rendered HelmReleases, multi-thousand-line CRDs) bumps against etcd value limits on the hub. Split work into multiple ManifestWorks.
  • Placement decisions are recomputed. A label change on a ManagedCluster can move the work to a new cluster — and out of an old one. Decide whether that semantic is what you want; for stateful workloads, it almost certainly is not.
  • Hub backup is mandatory. Losing the hub loses the placement and policy state. Velero or similar.

Stack Harbor designs and operates multi-cluster fleets on OCM for clients with edge or hybrid topologies — ManagedClusterSet design, Placement strategies tuned to the workload mix, addon catalogue, and the policy framework for compliance reporting. See how we deliver that within our multi-region environments practice.