피드로 돌아가기
Getting Started with the Cluster Inventory API on OCM (Part 1: ClusterProfile)
Dev.toDev.to
Infrastructure

OCM 기반 ClusterProfile 도입을 통한 Vendor-neutral 멀티클러스터 인벤토리 구축

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

Kahiro Okina2026년 5월 5일22intermediate

Context

다양한 클러스터 환경에서 개별적인 API 엔드포인트 관리 및 접근 제어의 복잡성 증가. 특정 벤더 종속적인 도구 사용으로 인해 컨트롤러 계층의 이식성 저하 및 통합 뷰 부재라는 한계 직면.

Technical Solution

  • SIG-Multicluster의 Cluster Inventory API를 채택하여 ClusterProfile 중심의 추상화 계층 설계
  • Spoke 클러스터의 ClusterProperty 데이터를 Hub의 ManagedCluster.status.clusterClaims를 통해 전송하는 데이터 파이프라인 구축
  • Hub 내 cluster-manager-registration-controller를 배치하여 수집된 데이터를 ClusterProfile.status.properties로 동기화하는 로직 구현
  • cluster-proxy 애드온을 통해 실제 사용 가능한 연결 엔드포인트를 ClusterProfile.status.accessProviders에 매핑하는 구조 설계
  • multicluster-runtime을 활용하여 OCM 전용 Import 없이 ClusterProfile만으로 클러스터를 발견하고 제어하는 Vendor-neutral 아키텍처 구현

- 멀티클러스터 제어기 설계 시 특정 플랫폼 API 대신 표준 인터페이스(Cluster Inventory API) 기반의 추상화 계층 검토 - Spoke-to-Hub 데이터 흐름을 설계할 때 상태 동기화 경로(Property -> Agent -> ManagedCluster -> Profile)의 가시성 확보 - 외부 소비자(Consumer)가 사용할 수 있는 실제 접속 가능 엔드포인트(CA Bundle 포함)를 인벤토리 리소스에 포함하는 설계 적용

원문 읽기