Sveltos: install on mini + bootstrap cluster registration (static SA) #1531

Open
opened 2026-08-13 21:22:24 +00:00 by ginjiruu · 1 comment
Owner

Moved from lab/iac#34 — Sveltos install is implemented in this (clusters) repo.

Sveltos: install on mini + bootstrap cluster registration (static SA)

Sveltos is the fleet-management layer for tofu-rendered infrastructure
(research #1529). To start using it we must install it on mini and register the
fleet clusters. This ticket covers the one-time bootstrap; the OIDC migration
is a separate ticket (#1530).

Install Sveltos on mini (management cluster)

  • Deploy Sveltos on mini via this repo (HelmRelease + CRDs) — the
    ClusterProfiles are already staged inert in sveltos/ (PR #1526) and the
    CRDs must land before those profiles are wired in (Flux root build fails
    on unknown CRDs — the ordering gate documented there).
  • Sveltos auto-registers the management cluster as mgmt/mgmt — add the
    sveltos.io/... labels per the iac cluster registry so mini itself matches
    the fleet ClusterProfiles.

Bootstrap fleet cluster registration (static SA, one-time manual)

Mirroring argocd cluster add (Argo CD's bootstrap SA), register each fleet
cluster with a static cluster-admin SA first:

  1. sveltosctl generate kubeconfig --create against the managed cluster
    (creates a cluster-admin SA + kubeconfig).
  2. sveltosctl register cluster --namespace=<ns> --cluster=<name> --kubeconfig=<file> --labels=<labels> against the Sveltos management
    cluster (mini), with labels from the iac cluster registry
    (lab/iac/apps/clusters.yaml, clusters.<name>.sveltos).

Programmatic equivalent (for git/automation):

  • Secret <cluster>-sveltos-kubeconfig (data.kubeconfig) + SveltosCluster
    CR (label sveltos-agent: present) in the management cluster.

Clusters: mini (via mgmt registration), portable, remote. mx2/localhost and
the incoming firewalled cluster
: registered when they first host catalog
apps; the firewalled cluster's reachability is T13 (lab/iac#28).

After bootstrap

  • Wire ./sveltos into mini's build → the staged ClusterProfiles go live →
    delete the now-redundant per-cluster pointer files
    (clusters/{mini,portable,remote}/vault-secrets-operator.yaml, the ESO
    HelmRelease sets, standard-cluster Kustomizations) — per
    lab/iac/plans/sveltos-flux-integration.md.
  • sveltosctl show addons should list the fleet and the deployed addons.

Deliverables

  • Sveltos installed on mini, mgmt cluster labelled per registry
  • portable + remote registered (SveltosCluster Ready) with registry labels
  • ClusterProfiles live; per-cluster pointers removed
  • sveltosctl show addons green across the fleet

Depends on / linked

  • #1529 research (pull-mode licensing → push mode + T13 for firewalled)
  • PR #1526 (staged ClusterProfiles)
  • T13 lab/iac#28 (connectivity; only required for the firewalled cluster)
  • #1530 (migrate Sveltos auth to Kanidm SA + OIDC — the follow-on)
> Moved from lab/iac#34 — Sveltos install is implemented in this (clusters) repo. ## Sveltos: install on mini + bootstrap cluster registration (static SA) Sveltos is the fleet-management layer for tofu-rendered infrastructure (research #1529). To start using it we must install it on mini and register the fleet clusters. This ticket covers the one-time bootstrap; the OIDC migration is a separate ticket (#1530). ## Install Sveltos on mini (management cluster) - Deploy Sveltos on mini via this repo (HelmRelease + CRDs) — the ClusterProfiles are already staged inert in `sveltos/` (PR #1526) and the CRDs must land **before** those profiles are wired in (Flux root build fails on unknown CRDs — the ordering gate documented there). - Sveltos auto-registers the management cluster as `mgmt`/`mgmt` — add the `sveltos.io/...` labels per the iac cluster registry so mini itself matches the fleet ClusterProfiles. ## Bootstrap fleet cluster registration (static SA, one-time manual) Mirroring `argocd cluster add` (Argo CD's bootstrap SA), register each fleet cluster with a **static cluster-admin SA** first: 1. `sveltosctl generate kubeconfig --create` against the managed cluster (creates a cluster-admin SA + kubeconfig). 2. `sveltosctl register cluster --namespace=<ns> --cluster=<name> --kubeconfig=<file> --labels=<labels>` against the Sveltos management cluster (mini), with labels from the iac cluster registry (`lab/iac/apps/clusters.yaml`, `clusters.<name>.sveltos`). Programmatic equivalent (for git/automation): - Secret `<cluster>-sveltos-kubeconfig` (data.kubeconfig) + `SveltosCluster` CR (label `sveltos-agent: present`) in the management cluster. Clusters: mini (via mgmt registration), portable, remote. **mx2/localhost and the incoming firewalled cluster**: registered when they first host catalog apps; the firewalled cluster's reachability is T13 (lab/iac#28). ## After bootstrap - Wire `./sveltos` into mini's build → the staged ClusterProfiles go live → delete the now-redundant per-cluster pointer files (`clusters/{mini,portable,remote}/vault-secrets-operator.yaml`, the ESO HelmRelease sets, standard-cluster Kustomizations) — per `lab/iac/plans/sveltos-flux-integration.md`. - `sveltosctl show addons` should list the fleet and the deployed addons. ## Deliverables - [ ] Sveltos installed on mini, mgmt cluster labelled per registry - [ ] portable + remote registered (SveltosCluster Ready) with registry labels - [ ] ClusterProfiles live; per-cluster pointers removed - [ ] `sveltosctl show addons` green across the fleet ## Depends on / linked - #1529 research (pull-mode licensing → push mode + T13 for firewalled) - PR #1526 (staged ClusterProfiles) - T13 lab/iac#28 (connectivity; only required for the firewalled cluster) - #1530 (migrate Sveltos auth to Kanidm SA + OIDC — the follow-on)
Author
Owner

Placement question raised by the new portable-offload plan (2026-08-18, plans/portable-offload-migration.md + #1537):

The offload vision makes portable the fleet's head management cluster. This ticket installs Sveltos on mini (per ADR-0002, which gives mini the headroom — portable is the resource-starved node). Those two readings can point at different homes for Sveltos.

Recommendation: keep Sveltos on mini (fleet-ops / manifest delivery), and let portable be head for identity (kanidm), secrets (vault), code (forgejo), registry (harbor), and the edge/ingress. That keeps the starved node light and matches ADR-0002.

If the intent is instead to pull Sveltos (and the other fleet-management control planes) onto portable, this ticket's install target flips — confirm which way it goes before #1531 lands.

Placement question raised by the new portable-offload plan (2026-08-18, `plans/portable-offload-migration.md` + #1537): The offload vision makes **portable** the fleet's *head management* cluster. This ticket installs Sveltos on **mini** (per ADR-0002, which gives mini the headroom — portable is the resource-starved node). Those two readings can point at different homes for Sveltos. **Recommendation:** keep Sveltos on **mini** (fleet-ops / manifest delivery), and let portable be *head* for identity (kanidm), secrets (vault), code (forgejo), registry (harbor), and the edge/ingress. That keeps the starved node light and matches ADR-0002. If the intent is instead to pull Sveltos (and the other fleet-management control planes) onto portable, this ticket's install target flips — confirm which way it goes before #1531 lands.
Sign in to join this conversation.
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#1531
No description provided.