k8s-backup
Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.
Why use this skill?
Automate your Kubernetes disaster recovery and backup management with the k8s-backup skill. Easily create, list, and restore cluster snapshots using Velero integration.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/rohitg00/k8s-backupWhat This Skill Does
The k8s-backup skill provides an integrated interface for managing Kubernetes disaster recovery, data protection, and workload migration using Velero. It enables AI agents to automate the lifecycle of cluster snapshots, from initial discovery and configuration to complex backup execution and granular restoration. By abstracting the underlying CLI commands, this skill allows users to perform full namespace backups, filtered restores, and schedule automated protection policies without needing manual terminal interaction.
Installation
To integrate this capability into your agent, use the OpenClaw package manager:
clawhub install openclaw/skills/skills/rohitg00/k8s-backup
Use Cases
- Disaster Recovery: Execute emergency full-cluster snapshots during system instability and restore them to cold-standby or secondary clusters.
- Workload Migration: Use namespace mapping features to move applications from staging to production environments, or between clouds.
- Data Protection: Automate daily or hourly RPO/RTO goals using the scheduling features, ensuring data consistency for stateful applications.
- Selective Restoration: Recover only specific ConfigMaps or Secrets after accidental deletion without rolling back the entire application stack.
Example Prompts
- "Create a daily backup of the production namespace and set a retention period of 30 days."
- "I need to restore the 'web-app' from the last backup but exclude all persistent volume claims to prevent overriding existing storage."
- "Can you check if Velero is correctly configured in this cluster and list all existing backups to confirm our disaster recovery plan is active?"
Tips & Limitations
- Monitoring Status: Always monitor the backup status (InProgress, Completed, Failed) using the
velero_backup_get_toolbefore attempting a restore operation to ensure data integrity. - Permissions: Ensure the service account running the OpenClaw agent has sufficient RBAC permissions to access Velero custom resources and the underlying cloud storage provider.
- Resource Exclusions: Be cautious when using
exclude_resourcesduring restores; verify that excluding items like PVCs won't leave your application in a broken state due to missing mounts. - TTL Handling: Always define a TTL for your backups to prevent storage bloating in your object storage buckets.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-rohitg00-k8s-backup": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, external-api
Related Skills
k8s-certs
Kubernetes certificate management with cert-manager. Use when managing TLS certificates, configuring issuers, or troubleshooting certificate issues.
k8s-autoscaling
Configure Kubernetes autoscaling with HPA, VPA, and KEDA. Use for horizontal/vertical pod autoscaling, event-driven scaling, and capacity management.
k8s-multicluster
Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle.
k8s-browser
Browser automation for Kubernetes dashboards and web UIs. Use when interacting with Kubernetes Dashboard, Grafana, ArgoCD UI, or other web interfaces. Requires MCP_BROWSER_ENABLED=true.
k8s-capi
Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.