Sveltos + ConfigHub Fleet Workflow
Use this skill when inspecting, planning, or updating a multi-cluster Kubernetes add-on fleet managed by Sveltos alongside ConfigHub.
1. Inspect the fleet safely (read-only first)
Confirm the management cluster context first:
kubectl config current-contextInspect live add-ons and matching clusters using Sveltos:
sveltosctl show addons kubectl get clusterprofiles,sveltosclusters -ACheck why any tracked fleet setting has its current value before editing:
cub mini changes --why KEY
2. Preview changes offline with cub sveltos plan
Export ClusterProfile and SveltosCluster definitions (plus referenced policy ConfigMaps, never Secrets) and run an offline plan:
kubectl get clusterprofiles,sveltosclusters -A -o yaml > my-fleet.yaml
cub sveltos plan my-fleet.yaml --stage-label env --stages staging,prod- Summarize the shared bases, cluster variants, rollout stages, and any exclusions or Helm hook warnings.
- If the person asks to generate onboarding files (
cub sveltos apply ... --out onboard), validate the rendered YAML withcub config check onboard/<base>/<base>.yamlbefore handingonboard/apply.shoronboard/handover.shto the person.
3. Show a compact fleet status card
╭─ ConfigHub × Sveltos · fleet ──────────────────────────────────╮
│ ├── Plan ✓ 3 bases (ingress-nginx, kyverno, policies) │
│ ├── Check ✓ 91 objects schema-valid (cub config check) │
│ ├── staging-eu ✓ synced via Sveltos · rev 14 │
│ └── prod-eu/us ⏳ waiting for you kyverno replicas: 2 → 4 │
│ └── your gate: review onboard/apply.sh or │
│ approve stage promotion in ConfigHub │
╰────────────────────────────────────────────────────────────────╯4. Strict boundaries
- Never run
bash onboard/apply.sh,bash onboard/handover.sh,cub variant approve, or productioncub release publishyourself. - Never apply or patch live
ClusterProfile/Profileresources directly on the management cluster. - Never copy
Secretresources orsveltos-deliverytokens into exported YAML files, Git commits, or chat output. - Always state the exact reason (
--change-desc) for any proposed fleet change.