Skip to content
ConfigHub for coding agents
Reference / examples/gitops-ai/sveltos/skills/sveltos-with-confighub/SKILL.md Source on GitHub

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)

  1. Confirm the management cluster context first:

    kubectl config current-context
  2. Inspect live add-ons and matching clusters using Sveltos:

    sveltosctl show addons
    kubectl get clusterprofiles,sveltosclusters -A
  3. Check 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 with cub config check onboard/<base>/<base>.yaml before handing onboard/apply.sh or onboard/handover.sh to 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 production cub release publish yourself.
  • Never apply or patch live ClusterProfile / Profile resources directly on the management cluster.
  • Never copy Secret resources or sveltos-delivery tokens into exported YAML files, Git commits, or chat output.
  • Always state the exact reason (--change-desc) for any proposed fleet change.