Menu

1 / 3

Getting Started with the Cluster Inventory API on OCM (Part 1: ClusterProfile)

DEV Community·Kahiro Okina·6 months ago
#3QLEG7n1
#create#install#enable#kubernetes#cluster
Reading 0:00
15s threshold

This is Part 1 of a two-part series.

Part 2 (coming soon): Connecting to spoke clusters from a controller using multicluster-runtime , driven by ClusterProfile .

What this article is about

The Cluster Inventory API ( multicluster.x-k8s.io ) is driven by SIG-Multicluster and centered on the ClusterProfile resource. It only delivers value when something produces those ClusterProfile s . That something is a cluster manager . Today, the production-ready open-source option is Open Cluster Management (OCM) , whose registration controller can act as a ClusterProfile cluster manager behind a feature gate.

This article shows how to set that up end-to-end on a local kind environment:

An OCM hub-spoke setup with three kind clusters.

The ClusterProfile feature gate enabled on the hub.

cluster-proxy wired in so ClusterProfile.status.accessProviders carries real, usable connection info.

ClusterProperty from the spokes flowing into ClusterProfile.status.properties on the hub.

By the end, you'll have a working…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.