This article builds an Open Cluster Management (OCM) hub-spoke environment with three local kind clusters and enables the Cluster Inventory API ClusterProfile . It also creates ClusterProperty resources on the spoke clusters and verifies that they are propagated through ManagedCluster.status.clusterClaims on the hub into ClusterProfile.status.properties .
The steps use kind , clusteradm , helm , and kubectl . The commands explicitly pass Kubernetes contexts so they can be copied and run in order.
Overview
This article creates the following setup.
Three kind clusters: hub , cluster1 , and cluster2
The OCM hub manages cluster1 and cluster2 as managed clusters
The managed clusters belong to a ManagedClusterSet named sandbox-fleet
The cluster-proxy addon and managed-serviceaccount addon are installed on the spoke clusters
ClusterProfile resources are created in the cluster-inventory namespace
ClusterProperty values from the spoke clusters are synchronized into ClusterProfile.status.properties on the…