cluster-backup
Skill0 starsChanged 41 days agoMITView on GitHub
Use when designing or reviewing Kubernetes cluster backup and disaster recovery — what GitOps does and doesn't rebuild, Velero (schedules, CSI snapshots vs file-system backup, restore design), etcd snapshots for self-hosted clusters, and restore testing. Mention "velero", "cluster backup", "disaster recovery", "etcd snapshot", "restore", "backup strategy" as triggers.
In this repository45 other files it gives its agents.
- admission-policy-reviewSkill
- alert-rule-reviewSkill
- architecture-reviewSkill
- argocd-applicationsetSkill
- argocd-debugSkill
- argocdSkill
- cert-manager-debugSkill
- cicd-reviewSkill
- cilium-debugSkill
- ciliumSkill
- dast-reviewSkill
- dockerfile-reviewSkill
- english-technical-messageSkill
- git-messageSkill
- gitops-reviewSkill
- go-bugfixSkill
- go-code-reviewSkill
- go-testing-reviewSkill
- grafana-dashboardsSkill
- helm-reviewSkill
- homelab-change-planSkill
- incident-analysisSkill
- ingressSkill
- interview-system-designSkill
- istio-debugSkill
- istioSkill
- kubernetes-autoscalingSkill
- kubernetes-debugSkill
- kubernetes-securitySkill
- kubernetes-yaml-reviewSkill
- migration-planSkill
- observability-reviewSkill
- observability-stackSkill
- production-readinessSkill
- pr-reviewSkill
- root-cause-analysisSkill
- runbook-writerSkill
- runtime-security-reviewSkill
- secrets-managementSkill
- storage-debugSkill
- supply-chain-securitySkill
- terraform-reviewSkill
- upgrade-readinessSkill
- vaultSkill
- vulnerability-triageSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Read backup schedules, storage locations, volume method, and evidence from the latest restore test.
- Distinctive: line 30
Do not treat GitOps desired state as a backup of running data.
- Distinctive: line 34
Follow the Workflow, Safety rules, and Quality checklist below.
- Distinctive: line 44
Use when designing, reviewing, or questioning a cluster's backup/DR posture: "do we even need backups if we have GitOps?", Velero setup and …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cluster Backup & DR
TL;DR checklist
- Inventory state Git cannot rebuild: volume data, secret material, runtime objects, and self-hosted control-plane state.
- Set recovery time and data-loss targets per item.
- Design backup and restore tests for uncovered state.
Answer must include
For a backup/DR design or review request, show each stateful item in a table as git-rebuildable, backup-covered, or uncovered, with its RPO/RTO or an explicit unknown. State the backup method and database consistency plan, a scheduled restore-test cadence, and what alerts on backup failure or stale success. If those inputs are missing, keep them as decisions to resolve; do not silently omit the row.
Key read-only checks
- Read backup schedules, storage locations, volume method, and evidence from the latest restore test.
Common pitfalls
- Do not treat GitOps desired state as a backup of running data.
Agent procedure
Follow the Workflow, Safety rules, and Quality checklist below.
Quick references
- references/velero.md
Last verified: unverified
When to use
Use when designing, reviewing, or questioning a cluster's backup/DR posture: "do we even need
backups if we have GitOps?", Velero setup and schedules, persistent-volume data protection,
etcd snapshots on self-hosted clusters, and restore/DR planning. For one component's own DR
story, the umbrellas own it (argocd, vault, observability-stack); for writing the actual
DR runbook, hand off to runbook-writer. This skill owns the cluster-wide inventory and the
Velero/etcd layer.
Goal
A backup posture where every stateful thing in the cluster is either provably rebuildable from git or covered by a scheduled, monitored, restore-tested backup — with RPO/RTO stated, storage off-cluster, and no category silently falling through the GitOps gap.
Workflow
- Inventory what git does NOT rebuild — "everything is in GitOps" covers desired state
only. Walk the gap list explicitly:
- PV data — databases, queues, uploads; git has the PVC, not the bytes.
- Secrets not in git — anything created by hand, by operators, or by controllers (repo/cluster creds, webhook CAs, sealed-secrets private key, Vault storage).
- In-cluster state with no source of truth — CRD objects written by apps/operators at runtime, cert-manager ACME account keys, controller-issued identities.
- etcd/control plane (self-hosted only) — certificates, the API state itself. Each item lands in a bucket: git rebuilds it / backup covers it / uncovered (finding).
- State RPO/RTO per bucket — "how much can we lose / how long can restore take" decides schedule frequency, snapshot vs file-copy, and whether cross-region copies are warranted. A homelab tolerating 24h loss and a prod database tolerating 15min are different designs.
- Design the Velero layer — load
references/velero.md: backup storage location off-cluster, schedules with TTLs, CSI snapshots vs file-system backup chosen per volume type, hooks for app-consistent database backups, and restore semantics (namespace mapping, existing-resource policy). - Self-hosted control plane — etcd snapshots on a schedule + the PKI directory; a managed control plane (EKS/GKE/AKS) removes this layer but none of the others.
- A backup is a rumor until restored — the design must include a restore test with a cadence (restore into a scratch namespace/cluster, verify the application actually comes up and the data reads). An untested backup pipeline counts as uncovered in the inventory.
- Monitor the pipeline — backup failures alert (
velero backup getstates, PartiallyFailed drift, last-success age metric); a silently failing schedule is the worst outcome in this domain. - Hand off the runbook — the restore procedure, owners, and decision points go to
runbook-writer; the incident that triggers it goes toincident-analysisafterwards.
References
references/velero.md — install/BSL/schedule design, CSI snapshot vs node-agent file-system
backup decision table, hooks for consistency, restore semantics, failure modes, monitoring,
and the etcd snapshot section for self-hosted clusters.
Safety rules
- Design/review skill: do not run
velero backup create/delete,velero restore create, oretcdctl snapshot restoreagainst a live cluster — propose schedules/manifests and the restore plan; the user executes. - Restores overwrite state — a restore into an occupied namespace/cluster can clobber newer data with older data; every restore proposal states its collision policy and what it will overwrite, and requires explicit confirmation.
etcdctl snapshot restorerebuilds the control plane's view of everything — treat as the most destructive operation in Kubernetes; plan-only, never suggested casually.- Backup deletion (or TTL shortening) destroys recovery points — flag retention reductions as destructive changes.
- Object-storage credentials for backup locations are secrets — reference a secrets mechanism
(
secrets-management); backups themselves contain Secrets in plaintext by default — the bucket's access policy and encryption are part of the review, not an afterthought.
Output format
## Inventory (git-rebuildable / backup-covered / UNCOVERED, per stateful thing)
## RPO/RTO (stated per bucket, driving the design)
## Proposed design (BSL, schedules, snapshot-vs-FSB per volume, hooks, etcd layer)
## Restore plan & test cadence (how, into what, verified by what)
## Monitoring (what alerts when backups stop working)
## Open risks (what remains uncovered and why)Quality checklist
- The GitOps gap inventory was walked explicitly; every stateful item has a bucket
- RPO/RTO stated and the schedule/method actually meets them
- Snapshot vs file-system backup chosen per volume type with the trade-off stated
- Database-class workloads have consistency hooks (or a stated reason they don't need them)
- A restore test with a cadence is part of the design, not a suggestion
- Backup storage is off-cluster, access-controlled, and its Secrets exposure addressed
- Nothing was backed up/restored/deleted by the agent; all operations are proposed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

