← 返回 Skills 市场
rohitg00

Kubernetes Skills

作者 Rohit Ghumare · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2196
总下载
1
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install k8s-backup
功能描述
Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.
使用说明 (SKILL.md)

Kubernetes Backup with Velero

Manage backups and restores using kubectl-mcp-server's Velero tools.

Check Velero Installation

# Detect Velero
velero_detect_tool()

# List backup locations
velero_backup_locations_list_tool()

Create Backups

# Backup entire namespace
velero_backup_create_tool(
    name="my-backup",
    namespaces=["default", "app-namespace"]
)

# Backup with label selector
velero_backup_create_tool(
    name="app-backup",
    namespaces=["default"],
    label_selector="app=my-app"
)

# Backup excluding resources
velero_backup_create_tool(
    name="config-backup",
    namespaces=["default"],
    exclude_resources=["pods", "replicasets"]
)

# Backup with TTL
velero_backup_create_tool(
    name="daily-backup",
    namespaces=["production"],
    ttl="720h"  # 30 days
)

List and Describe Backups

# List all backups
velero_backups_list_tool()

# Get backup details
velero_backup_get_tool(name="my-backup")

# Check backup status
# - New: Backup request created
# - InProgress: Backup running
# - Completed: Backup successful
# - Failed: Backup failed
# - PartiallyFailed: Some items failed

Restore from Backup

# Full restore
velero_restore_create_tool(
    name="my-restore",
    backup_name="my-backup"
)

# Restore to different namespace
velero_restore_create_tool(
    name="my-restore",
    backup_name="my-backup",
    namespace_mappings={"old-ns": "new-ns"}
)

# Restore specific resources
velero_restore_create_tool(
    name="config-restore",
    backup_name="my-backup",
    include_resources=["configmaps", "secrets"]
)

# Restore excluding resources
velero_restore_create_tool(
    name="partial-restore",
    backup_name="my-backup",
    exclude_resources=["persistentvolumeclaims"]
)

List and Monitor Restores

# List restores
velero_restores_list_tool()

# Get restore details
velero_restore_get_tool(name="my-restore")

Scheduled Backups

# List schedules
velero_schedules_list_tool()

# Get schedule details
velero_schedule_get_tool(name="daily-backup")

# Create schedule (via kubectl)
kubectl_apply(manifest="""
apiVersion: velero.io/v1
kind: Schedule
metadata:
  name: daily-backup
  namespace: velero
spec:
  schedule: "0 2 * * *"  # 2 AM daily
  template:
    includedNamespaces:
    - production
    ttl: 720h
""")

Disaster Recovery Workflow

Create DR Backup

1. velero_backup_create_tool(
       name="dr-backup-$(date)",
       namespaces=["production"]
   )
2. velero_backup_get_tool(name="dr-backup-...")  # Wait for completion

Restore to New Cluster

1. velero_detect_tool()  # Verify Velero installed
2. velero_backups_list_tool()  # Find backup
3. velero_restore_create_tool(
       name="dr-restore",
       backup_name="dr-backup-..."
   )
4. velero_restore_get_tool(name="dr-restore")  # Monitor

Related Skills

安全使用建议
This skill appears to be a straightforward Velero backup/restore guide, but it omits explicit requirements for kubectl/velero and access to your kubeconfig or cluster credentials. Before installing or using it: 1) Confirm where the velero_* and kubectl_apply tools come from in your agent environment and whether they will run commands with your kubeconfig. 2) Limit the agent's Kubernetes credentials to a least-privilege service account or a non-production cluster for testing. 3) Verify Velero is installed and test workflows on a sandbox cluster first, since restores can overwrite resources (including Secrets). 4) Prefer skills with a known source/homepage; provenance is unknown here. These steps will reduce the chance of unintended changes or credential exposure.
功能分析
Type: OpenClaw Skill Name: k8s-backup Version: 1.0.0 The skill bundle provides functionality for Kubernetes backup and restore using Velero, which is a legitimate operational task. All instructions in SKILL.md are directly related to this stated purpose, utilizing `velero_*_tool()` functions and `kubectl_apply()` for Velero schedule management. There is no evidence of intentional harmful behavior, data exfiltration, malicious execution, persistence, or prompt injection attempts against the agent to deviate from its intended function. The use of `kubectl_apply` is for a standard Velero operation, and while powerful, its usage within this skill is appropriate for the stated purpose.
能力评估
Purpose & Capability
The name/description (Velero backups/restores) align with the SKILL.md examples calling velero_* and kubectl_apply. However, the skill does not declare obvious dependencies it needs in practice (kubectl, velero CLI or provider tools, or access to a kubeconfig/context). That omission is inconsistent with the stated purpose because interacting with clusters requires credentials and tooling.
Instruction Scope
SKILL.md provides concrete backup/create/list/restore/schedule operations and only references Velero and kubectl operations. It does not instruct the agent to read unrelated files, exfiltrate data, or call external unknown endpoints. It does include actions that would operate on secrets and cluster resources (expected for a backup/restore tool).
Install Mechanism
This is instruction-only (no install spec, no code written to disk). That is the lowest-risk install pattern — nothing is downloaded or installed by the skill itself.
Credentials
The skill requests no environment variables or config paths, but in practice Velero and kubectl require cluster credentials (kubeconfig) and installed binaries. Not declaring kubeconfig or cluster-access requirements is a proportionality mismatch: the skill will need access to potentially sensitive cluster credentials to do its job, yet the registry metadata doesn't signal that.
Persistence & Privilege
The skill is not always-enabled and does not request persistent or cross-skill privileges. It doesn't declare actions that modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install k8s-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /k8s-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of k8s-backup for Kubernetes backup and restore using Velero. - Provides tools to detect Velero, create and manage backups, list and describe restores, and configure backup schedules. - Supports selective backup and restore options, including resource filtering, label selectors, namespace mappings, and TTL settings. - Includes workflows for disaster recovery and scheduled backups. - Reference links to related skills for multi-cluster operations and incident response.
元数据
Slug k8s-backup
版本 1.0.0
许可证
累计安装 7
当前安装数 7
历史版本数 1
常见问题

Kubernetes Skills 是什么?

Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2196 次。

如何安装 Kubernetes Skills?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install k8s-backup」即可一键安装,无需额外配置。

Kubernetes Skills 是免费的吗?

是的,Kubernetes Skills 完全免费(开源免费),可自由下载、安装和使用。

Kubernetes Skills 支持哪些平台?

Kubernetes Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kubernetes Skills?

由 Rohit Ghumare(@rohitg00)开发并维护,当前版本 v1.0.0。

💬 留言讨论