Sveltos + ConfigHub Agent Instructions
This fleet is delivered by Sveltos (ClusterProfile / Profile / SveltosCluster) and governed by ConfigHub (cub sveltos + ConfigHub plugin). Use each tool for the half it owns, never mutate live cluster profiles without explicit human approval.
Division of labor
| Question or task | Use | Examples |
|---|---|---|
| Live fleet status, cluster matching, deployed add-on health, drift repair | Sveltos (sveltosctl) and kubectl (read-only) | sveltosctl show addons, kubectl get clusterprofiles,sveltosclusters -A |
Offline fleet onboarding preview, rendered chart objects, stage layout (staging → prod-eu → prod-us) | ConfigHub Sveltos plugin (cub sveltos, offline) | cub sveltos plan my-fleet.yaml --stage-label env --stages staging,prod |
| Schema validation of rendered fleet manifests before saving | ConfigHub Workshop plugin (cub config check, read-only) | cub config check onboard/<base>/<base>.yaml |
| Why a fleet value changed across sessions, cross-stage diffs, change history | ConfigHub plugin | /confighub:why KEY, /confighub:changes, cub mini changes --why KEY |
| Syncing Sveltos delivery observations back into ConfigHub | ConfigHub Sveltos plugin | cub sveltos status --kube-context <mgmt-ctx> |
Rules for coding agents
- Always start offline and read-only. Confirm
kubectl config current-contextbefore reading a management cluster. ExportClusterProfile/SveltosClusterYAML (excluding Secrets) and runcub sveltos planfirst, this changes nothing on the cluster and needs no ConfigHub account. - Validate before saving. Run
cub config check onboard/<base>/<base>.yamlon generated outputs and report every exclusion, Helm hook warning, or schema error to the person. Never pass--include-hooksblindly. - Human-only live steps. Never run
onboard/apply.sh,onboard/handover.sh,kubectl applyagainst liveClusterProfiles,cub variant approve, orcub release publishfor production stages yourself. Prepare the plan or proposed field change with--change-desc, show the diff, and hand the exact command to the human operator. - Protect credentials. Never export or commit Kubernetes
Secretobjects, Sveltos kubeconfigs, orsveltos-deliverygateway tokens into review files, chat output, or Git.