Research: OCM inventory (ManagedCluster/Placement) as the fleet registry — given manual bootstrap, no generated clusters #1539
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters#1539
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
modules/{installer,rke2,pull,base}.nix). It is aspirational — no host has been installed from it yet.apps/catalog.yaml(master) listsprivatebin+syncthingonly.apps/clusters.yaml(registry) exists only on brancht15-multicluster-catalog; it hand-lists mini/portable/remote withargo_server+sveltoslabels.The onboarding problem (what "painful 3→10" means)
Today, adding a cluster is:
apps/clusters.yaml(argo_server + sveltos labels).deploymentsentries per app inapps/catalog.yaml.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)
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
deploymentsmap inapps/catalog.yamldisappear (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.yamland 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-appdeploymentsmap already encodes statically?Decision this research feeds
apps/clusters.yaml+ per-app deployment wiring)Related
docs/architecture-requirements.mdR1–R10 (bootstrap pipeline the klusterlet would ride)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.moeCRDs) + 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".