velero
БесплатноБез исполняемых скриптовНе проверенVelero is an open-source tool that backs up and restores Kubernetes cluster resources and persistent volumes to object storage. Use this skill when a user…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Velero
Overview
Velero (formerly Heptio Ark, now at github.com/velero-io/velero; latest 1.18.x) has two parts: a server running in the cluster (namespace velero) and a local velero CLI. Backups are stored in a BackupStorageLocation (an object-storage bucket). Volume data is captured one of three ways: CSI or provider snapshots, file system backup (Kopia, run by the node agent; works for almost any volume type, including NFS and emptyDir; restic is deprecated), or the CSI snapshot data mover (--snapshot-move-data). Cloud integrations are plugins whose version must match Velero (plugin 1.14.x for Velero 1.18.x).
Instructions
- Install the CLI. Prefer a package manager:
brew install velero # macOS and Linuxbrew
choco install velero # Windows
Or download a release and verify the checksum before extracting:
VER=v1.18.4
curl -sLO https://github.com/velero-io/velero/releases/download/$VER/velero-$VER-linux-amd64.tar.gz
curl -sLO https://github.com/velero-io/velero/releases/download/$VER/CHECKSUM
sha256sum -c --ignore-missing CHECKSUM
tar -xzf velero-$VER-linux-amd64.tar.gz
sudo install velero-$VER-linux-amd64/velero /usr/local/bin/velero
velero version --client-only
- Install the server (the Helm chart is the other supported method). AWS, with credentials taken from environment variables:
printf '[default]\naws_access_key_id=%s\naws_secret_access_key=%s\n' \
"$VELERO_AWS_ACCESS_KEY_ID" "$VELERO_AWS_SECRET_ACCESS_KEY" > credentials-velero
velero install \
--provider aws \
--plugins velero/velero-plugin-for-aws:v1.14.4 \
--bucket northwind-velero-backups \
--backup-location-config region=eu-west-1 \
--snapshot-location-config region=eu-west-1 \
--secret-file ./credentials-velero \
--use-node-agent \
--wait
rm credentials-velero
GCP: --provider gcp --plugins velero/velero-plugin-for-gcp:v1.14.4 --bucket NAME --secret-file ./gcp-sa.json. With IAM roles or workload identity use --no-secret instead of a key file. Add --default-volumes-to-fs-backup to back up every pod volume with file system backup, or --use-volume-snapshots=false if there is no snapshot provider.
- Back up with
velero backup create NAMEand the filters--include-namespaces,--exclude-namespaces,--selector,--include-resources/--exclude-resources(formatresource.group, e.g.deployments.apps),--ttl(default 720h),--snapshot-volumes=false,--default-volumes-to-fs-backup,--snapshot-move-data,--wait. Inspect withvelero backup get,describe --details,logs. - Schedule with
velero schedule create NAME --schedule="0 2 * * *"(cron in UTC;@every 24halso works) plus the same filters.velero backup create --from-schedule NAMEruns one now;velero restore create --from-schedule NAMErestores the latest good run. - Restore with
velero restore create --from-backup NAME, optionally--include-namespaces,--include-resources,--namespace-mappings old:new,--existing-resource-policy update. Existing objects are skipped unless the policy isupdate. Checkvelero restore describe NAME --details. - Volumes with file system backup: in opt-in mode annotate the pod (template) with
backup.velero.io/backup-volumes: data; in opt-out mode (--default-volumes-to-fs-backup) skip volumes withbackup.velero.io/backup-volumes-excludes.hostPathvolumes are not supported (localis). - To migrate, install Velero in the destination cluster against the same bucket (or add it as a
--access-mode ReadOnlylocation), wait untilvelero backup getlists the source backups, then restore.
Examples
Nightly backup of production with 30-day retention
velero schedule create prod-nightly \
--schedule="0 2 * * *" \
--include-namespaces production,database \
--default-volumes-to-fs-backup \
--ttl 720h
velero backup create prod-first-run --from-schedule prod-nightly --wait
velero backup describe prod-first-run --details
Result: Phase: Completed, with the pod volume backups listed under "Backup Volumes". The schedule itself produces names like prod-nightly-20261021020000.
Restore one namespace into a side-by-side copy
velero restore create shop-drill \
--from-backup prod-nightly-20261021020000 \
--include-namespaces production \
--namespace-mappings production:production-drill
velero restore describe shop-drill --details
kubectl get pods -n production-drill
Result: the restore reaches Completed and the pods start in production-drill while production is untouched. A drill like this each quarter proves the backups work.
Migrate to a new cluster
# old cluster
velero backup create migrate-2026-10 --exclude-namespaces kube-system,velero \
--default-volumes-to-fs-backup --wait
# new cluster (kubectl context switched), same bucket
velero install --provider aws --plugins velero/velero-plugin-for-aws:v1.14.4 \
--bucket northwind-velero-backups
Установить velero в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл velero?
Velero is an open-source tool that backs up and restores Kubernetes cluster resources and persistent volumes to object storage. Use this skill when a user needs to install Velero, back up namespaces or whole clusters, schedule automated backups, restore workloads after a failure, back up volumes with file system backup or snapshots, or migrate applications between clusters.
Как установить скилл velero?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл velero запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub