Kubernetes Backup with Velero for Openclaw

A specialized AI agent skill for managing Kubernetes cluster backups, restores, and disaster recovery workflows using Velero integration.

rohitg00
v1.0.0
Jan 26, 2026
1
3.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install k8s-backup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install k8s-backup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Kubernetes Backup with Velero?

This skill empowers AI agents to interact directly with Velero to manage the lifecycle of Kubernetes resource backups. By leveraging Openclaw Skills, developers and DevOps engineers can automate backup creation, monitor restoration progress, and migrate workloads between clusters without manually writing complex CLI commands.

It provides a structured interface for creating targeted backups—filtering by namespace, labels, or resource types—ensuring that critical application state is preserved and recoverable in any environment. This integration is essential for maintaining high availability and robust data protection strategies in modern cloud-native infrastructures.

Kubernetes Backup with Velero Use Cases

  • Automated disaster recovery preparation for production Kubernetes clusters.
  • Migrating stateful applications between different cloud providers or on-premise clusters.
  • Creating point-in-time snapshots of specific namespaces before performing major deployments.
  • Scheduling recurring backups to meet compliance requirements and data retention policies.
  • Restoring specific resources like ConfigMaps or Secrets without affecting the entire cluster state.

How Kubernetes Backup with Velero Works

  1. The skill detects the presence of Velero and its backup locations within the active Kubernetes context to ensure the environment is correctly configured.
  2. Users or agents trigger a backup request, specifying parameters such as target namespaces, resource exclusions, or custom time-to-live (TTL) settings.
  3. The AI agent initiates the backup process via the Velero API and monitors its status from 'New' through to 'Completed'.
  4. For recovery, the skill maps existing backups to restore requests, allowing for advanced namespace remapping or selective resource inclusion.
  5. Schedules can be applied to the cluster to automate the entire data protection lifecycle and ensure periodic snapshots are maintained.

Kubernetes Backup with Velero Setup

Ensure you have a Kubernetes cluster and the kubectl-mcp-server configured within your environment. Velero must be installed on the target cluster for this skill to function. You can verify the environment with the following steps:

# Ensure the MCP server is installed and running
npm install -g @openclaw/kubectl-mcp-server

# The agent will use the following tool to verify connectivity:
# velero_detect_tool()

Kubernetes Backup with Velero Data Schema & Taxonomy

The skill interacts with Velero Custom Resource Definitions (CRDs) to organize and track data. The following table explains how the Openclaw Skills integration maps to Kubernetes resources:

Object Description Key Metadata
Backup Represents a point-in-time snapshot of resources. Name, Namespace list, Label Selector, TTL.
Restore Represents a recovery operation from a backup. Name, Backup Source Name, Namespace Mappings.
Schedule Automates the creation of backups on a cron basis. Cron Expression, Template, Phase.

Kubernetes Backup with Velero Advanced Features

  • Multi-namespace backup support with complex mapping logic for cross-namespace restoration.
  • Resource-specific filtering using both granular inclusion and exclusion lists.
  • Custom TTL (Time-To-Live) management to handle automated cleanup and storage optimization.
  • Real-time monitoring of backup statuses including PartiallyFailed and InProgress states for better debugging.
  • Declarative backup scheduling using Kubernetes manifests applied directly through the agent.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*