Velero CLI
$ velero Foundation High RiskVelero CLI (velero) manages Kubernetes cluster backups, schedules, and volume snapshots, supporting -o json (--output json) across get commands, --kubecontext isolation, and mandatory --confirm confirmation on deletions.
brew install velero velero queries Velero CRDs and storage locations directly via kubeconfig with -o json.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
-o json works on get subcommands and --confirm prevents accidental unattended deletes.
- Supports
-o jsonongetcommands and--confirmondelete
Deletes prompt unless --confirm is passed, though restore create and storage credential management require strict care.
- Requires
--confirmfor non-interactive deletion
Single static Go binary via Homebrew and GitHub releases across macOS, Linux, and Windows.
- Single Go binary via
brew install velero
Standard tool for cluster backup/restore and migration snapshots.
- Declarative Backup/Restore CRD workflows
Official vmware-tanzu/velero (CNCF ecosystem) maintained under Apache-2.0.
- Official
vmware-tanzu/velerorepository
Clear velero.io/docs/ guide and Cobra --help.
- Official docs at velero.io/docs/main/
Security, Auth & Guardrails
Reads cluster access from ~/.kube/config (KUBECONFIG) and optional CLI defaults from ~/.config/velero/config.json.
CLI is free (Apache-2.0); stored backups and snapshots incur cloud object-storage/snapshot charges.
# Velero CLI Agent Rules - Always pass `--kubecontext` and `-n velero` (or target namespace) explicitly. - Use `-o json` on `velero backup get`, `restore get`, and `schedule get`. - Never pass `--confirm` on `velero backup delete` or run `velero restore create` without explicit human approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
velero backup get -o json
Returns backup phases, expiration timestamps, and error counts in JSON.
velero backup-location get -o json
Verifies object-storage backup target availability and sync status.
Controlled Writes & Previews
velero backup create pre-upgrade-snap --include-namespaces app-staging --wait
Creates a targeted backup of a single namespace before a risky change.
Strengths for Agents
- + Consistent
-o jsononbackup get,restore get, andbackup-location get. - + Mandatory
--confirmflag protects backups from accidental deletion. - + Explicit
--kubecontextisolation in a single Go binary.
Caveats & Pitfalls
- !
velero restore createlacks a--dry-runsimulation mode. - !
velero backup describeemits human-readable text rather than JSON.