Research: OCM inventory (ManagedCluster/Placement) as the fleet registry — given manual bootstrap, no generated clusters #1539

Open
opened 2026-08-14 02:30:38 +00:00 by ginjiruu · 1 comment
Owner

Research: OCM inventory (ManagedCluster/Placement) as the fleet registry — given manual bootstrap, no generated clusters

Research ticket. Question: does Open Cluster Management's inventory layer (ManagedCluster / ManagedClusterSet / ClusterClaim / Placement) genuinely fix cluster onboarding for us, or does it just move the hand-editing somewhere else? Motivates the 3→10 scaling decision — whether the hand-rolled registry (iac apps/clusters.yaml + catalog) is the right answer or whether OCM inventory replaces it.

Reality grounding (as of 2026-08-13)

  • No generated clusters. All clusters are manually deployed rke2, set up by SSHing in. No Cluster API, no cloud, no provisioning automation in production.
  • machine-configs is WIP and not yet on the Forgejo: a nix flake that builds self-installing ISOs, provisions disko partitions, installs the rke2 closure offline, and pulls updates via a systemd timer (see modules/{installer,rke2,pull,base}.nix). It is aspirational — no host has been installed from it yet.
  • iac catalog is minimal. apps/catalog.yaml (master) lists privatebin + syncthing only. apps/clusters.yaml (registry) exists only on branch t15-multicluster-catalog; it hand-lists mini/portable/remote with argo_server + sveltos labels.
  • Most tickets are speculative — this is development-by-ticket while building.
  • The hub plan (clusters#1532) currently has no OCM dependency; OCM's tunnel/auth were rejected. This ticket only evaluates the inventory slice.

The onboarding problem (what "painful 3→10" means)

Today, adding a cluster is:

  1. Provision a machine by hand (or, later, via machine-configs ISO).
  2. SSH in, bootstrap/join rke2.
  3. Hand-register the cluster in iac apps/clusters.yaml (argo_server + sveltos labels).
  4. Add deployments entries per app in apps/catalog.yaml.
  5. Wire Argo CD destinations / Vault k8s auth / Sveltos registration per cluster.

At 10 clusters, steps 3–5 are the friction: registry edits, per-app deployment-map edits, and per-cluster tooling wiring. That is the specific pain OCM inventory would target — not connectivity (solved: WG/frp) and not auth (solved: Kanidm/agentgateway).

What OCM inventory offers (narrow scope)

  • ManagedCluster — one object per cluster; heartbeat/health; labels + ClusterClaim (custom attributes). Appears when the klusterlet dials out and the hub approves the CSR — no catalog edit.
  • ManagedClusterSet — grouping + RBAC on binding a set to a namespace (maps to capability-group tiers, ADR-0006/0007).
  • Placement → PlacementDecision — label/claim-driven selector producing a pure list of matching clusters, decoupled from execution. Sveltos can consume the decision for ClusterProfile targeting.

The open questions

1. Does it actually remove the hand-editing?

The klusterlet must still be installed on each cluster, and the CSR approved. Question: with no generated clusters, is "approve a CSR" meaningfully less work than "edit clusters.yaml"? Or does the win only appear once clusters are provisioned by machine-configs (klusterlet auto-installed as part of the ISO/system)? Where does the klusterlet come from in a nix-managed rke2 cluster — is it a workload (needs the cluster up first) or OS-level?

2. Placement → Sveltos integration

If Sveltos reads PlacementDecision, does the per-app deployments map in apps/catalog.yaml disappear (replaced by "Placement matches → Sveltos fans out")? Or does the catalog stay the source of truth and Placement just feed the tooling? What breaks if the two disagree?

3. Cost: the klusterlet + own CA

Inventory pulls in the hub registration operator + a klusterlet on every managed cluster + OCM's own CA for the hub↔klusterlet control channel (a second identity store, accepted as transport). Is that cost justified by the onboarding win? Does it interact with machine-configs (which owns the OS) or the agentgateway/Kanidm auth plane (which must not)?

4. Where does it run?

Portable (hub) per #1532. Does the inventory control plane run on portable, or could it run on mini and be reached over the WG fabric? Placement decisions must be consumable by Sveltos on the same hub.

5. Alternative: keep hand-rolled, automate the edits

The counterfactual: instead of OCM, automate steps 3–5 with machine-configs outputs + a small controller/CI job that appends to apps/clusters.yaml and catalog on registration. Compare effort against the OCM operator+klusterlet+CA cost. Is OCM's only real advantage the dynamic selector (Placement) for "which clusters run this app," which the catalog's per-app deployments map already encodes statically?

Decision this research feeds

  • Adopt OCM inventory as the fleet registry on portable, Sveltos consuming PlacementDecision (replace/absorb iac apps/clusters.yaml + per-app deployment wiring)
  • OR keep the hand-rolled registry + catalog, and make onboarding a machine-configs/CI-driven append
  • Either way, record the decision on clusters#1532 (inventory layer) so the plan stays complete.
  • clusters#1532 (hub plan — currently OCM-free; this is the inventory question), #1529 (Sveltos research, closed/moved)
  • iac#2 (catalog/capability-group spec), iac#32 (multi-cluster catalog ticket)
  • machine-configs docs/architecture-requirements.md R1–R10 (bootstrap pipeline the klusterlet would ride)
  • #1530 (Sveltos auth) — delivery auth stays Golden Path regardless
## Research: OCM inventory (ManagedCluster/Placement) as the fleet registry — given manual bootstrap, no generated clusters Research ticket. Question: does Open Cluster Management's **inventory** layer (ManagedCluster / ManagedClusterSet / ClusterClaim / Placement) genuinely fix cluster onboarding for us, or does it just move the hand-editing somewhere else? Motivates the 3→10 scaling decision — whether the hand-rolled registry (iac `apps/clusters.yaml` + catalog) is the right answer or whether OCM inventory replaces it. ## Reality grounding (as of 2026-08-13) - **No generated clusters.** All clusters are manually deployed rke2, set up by SSHing in. No Cluster API, no cloud, no provisioning automation in production. - **machine-configs is WIP** and not yet on the Forgejo: a nix flake that builds self-installing ISOs, provisions disko partitions, installs the rke2 closure offline, and pulls updates via a systemd timer (see `modules/{installer,rke2,pull,base}.nix`). It is aspirational — no host has been installed from it yet. - **iac catalog is minimal.** `apps/catalog.yaml` (master) lists `privatebin` + `syncthing` only. `apps/clusters.yaml` (registry) exists only on branch `t15-multicluster-catalog`; it hand-lists mini/portable/remote with `argo_server` + `sveltos` labels. - **Most tickets are speculative** — this is development-by-ticket while building. - The hub plan (clusters#1532) currently has **no** OCM dependency; OCM's tunnel/auth were rejected. This ticket only evaluates the **inventory slice**. ## The onboarding problem (what "painful 3→10" means) Today, adding a cluster is: 1. Provision a machine by hand (or, later, via machine-configs ISO). 2. SSH in, bootstrap/join rke2. 3. Hand-register the cluster in iac `apps/clusters.yaml` (argo_server + sveltos labels). 4. Add `deployments` entries per app in `apps/catalog.yaml`. 5. Wire Argo CD destinations / Vault k8s auth / Sveltos registration per cluster. At 10 clusters, steps 3–5 are the friction: registry edits, per-app deployment-map edits, and per-cluster tooling wiring. That is the specific pain OCM inventory would target — **not** connectivity (solved: WG/frp) and **not** auth (solved: Kanidm/agentgateway). ## What OCM inventory offers (narrow scope) - **ManagedCluster** — one object per cluster; heartbeat/health; labels + ClusterClaim (custom attributes). Appears when the klusterlet dials out and the hub approves the CSR — no catalog edit. - **ManagedClusterSet** — grouping + RBAC on binding a set to a namespace (maps to capability-group tiers, ADR-0006/0007). - **Placement → PlacementDecision** — label/claim-driven selector producing a pure list of matching clusters, decoupled from execution. Sveltos can consume the decision for ClusterProfile targeting. ## The open questions ### 1. Does it actually remove the hand-editing? The klusterlet must still be **installed** on each cluster, and the CSR **approved**. Question: with no generated clusters, is "approve a CSR" meaningfully less work than "edit clusters.yaml"? Or does the win only appear once clusters are provisioned by machine-configs (klusterlet auto-installed as part of the ISO/system)? Where does the klusterlet come from in a nix-managed rke2 cluster — is it a workload (needs the cluster up first) or OS-level? ### 2. Placement → Sveltos integration If Sveltos reads PlacementDecision, does the per-app `deployments` map in `apps/catalog.yaml` disappear (replaced by "Placement matches → Sveltos fans out")? Or does the catalog stay the source of truth and Placement just feed the tooling? What breaks if the two disagree? ### 3. Cost: the klusterlet + own CA Inventory pulls in the hub registration operator + a klusterlet on every managed cluster + OCM's own CA for the hub↔klusterlet control channel (a second identity store, accepted as transport). Is that cost justified by the onboarding win? Does it interact with machine-configs (which owns the OS) or the agentgateway/Kanidm auth plane (which must not)? ### 4. Where does it run? Portable (hub) per #1532. Does the inventory control plane run on portable, or could it run on mini and be reached over the WG fabric? Placement decisions must be consumable by Sveltos on the same hub. ### 5. Alternative: keep hand-rolled, automate the edits The counterfactual: instead of OCM, automate steps 3–5 with machine-configs outputs + a small controller/CI job that appends to `apps/clusters.yaml` and catalog on registration. Compare effort against the OCM operator+klusterlet+CA cost. Is OCM's only real advantage the **dynamic** selector (Placement) for "which clusters run this app," which the catalog's per-app `deployments` map already encodes statically? ## Decision this research feeds - Adopt OCM inventory as the fleet registry on portable, Sveltos consuming PlacementDecision (replace/absorb iac `apps/clusters.yaml` + per-app deployment wiring) - OR keep the hand-rolled registry + catalog, and make onboarding a machine-configs/CI-driven append - Either way, record the decision on clusters#1532 (inventory layer) so the plan stays complete. ## Related - clusters#1532 (hub plan — currently OCM-free; this is the inventory question), #1529 (Sveltos research, closed/moved) - iac#2 (catalog/capability-group spec), iac#32 (multi-cluster catalog ticket) - machine-configs `docs/architecture-requirements.md` R1–R10 (bootstrap pipeline the klusterlet would ride) - #1530 (Sveltos auth) — delivery auth stays Golden Path regardless
Author
Owner

Terminology correction (agentgateway → current architecture). agentgateway is not in the auth plane anymore. The auth plane is Kanidm (identity) + the authz-bridge (token exchange, oauth.animeteamspeak.moe CRDs) + apiserver OIDC. agentgateway is now AI-only.

Minor fix: "the agentgateway/Kanidm auth plane (which must not [be touched])" and "auth (solved: Kanidm/agentgateway)" → "the authz-bridge/Kanidm auth plane" / "Kanidm/authz-bridge".

**Terminology correction (agentgateway → current architecture).** agentgateway is not in the auth plane anymore. The auth plane is **Kanidm** (identity) + the **authz-bridge** (token exchange, `oauth.animeteamspeak.moe` CRDs) + apiserver OIDC. agentgateway is now AI-only. Minor fix: "the agentgateway/Kanidm auth plane (which must not [be touched])" and "auth (solved: Kanidm/agentgateway)" → "the authz-bridge/Kanidm auth plane" / "Kanidm/authz-bridge".
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1539
No description provided.