Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

kubeblocks-skillskubeblocks 技能

Agent Skill

kubeblocks-skills 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,470

周安装

346

GitHub Stars

公开资料未说明

下载量

2,713
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kubeblocks-skills(kubeblocks 技能)
来源仓库:https://github.com/earayu/kubeblocks-skills
安装命令:
openclaw skills install kubeblocks-skills
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install kubeblocks-skills

简介

KubeBlocks数据库即服务管理工具,支持MySQL、PostgreSQL等主流数据库部署。

  • 适用于Kubernetes环境中快速搭建、监控与维护生产级数据库实例。
  • 提供一键安装、备份恢复、扩缩容与性能调优等标准化运维能力。
  • 使用前需确认集群版本兼容性,涉及数据迁移时应先做快照备份。
  • 建议区分测试与生产环境操作,避免误删关键数据或占用过多资源。

SKILL.md

name
kubeblocks
version
0.2.0
description
Provision and manage production-grade databases on Kubernetes using KubeBlocks. Use this skill when the user needs a database — MySQL, PostgreSQL, Redis, MongoDB, Kafka, Elasticsearch, Milvus, Qdrant, RabbitMQ, or any other data infrastructure — and has (or is willing to set up) a Kubernetes environment. Trigger phrases include "I need a database", "set up MySQL", "spin up Postgres", "deploy a vector database for RAG", "I need a message queue", or any request involving database provisioning, scaling, backup, restore, monitoring, or troubleshooting on Kubernetes. Also use when the user explicitly mentions KubeBlocks, or wants to manage existing KubeBlocks-managed database clusters.
compatibility
required_tools
optional_tools
notes
Requires access to a Kubernetes cluster (kubeconfig). For local development, the skill can create a cluster using Kind, Minikube, or k3d.

KubeBlocks — Databases on Kubernetes, Made Simple

When To Use This Skill

Use this skill when:

  • The user needs a database and has (or is willing to set up) a Kubernetes environment
  • The user asks to "set up", "create", "deploy", "spin up", or "provision" a database on Kubernetes
  • The user mentions a database engine (MySQL, PostgreSQL, Redis, MongoDB, Kafka, Elasticsearch, Milvus, Qdrant, RabbitMQ, etc.) in the context of deployment or operations
  • The user needs database operations on K8s: scaling, backup, restore, monitoring, failover, parameter tuning
  • The user is troubleshooting a KubeBlocks-managed database
  • The user mentions KubeBlocks directly

When NOT to use this skill: If the user only needs a connection string to an existing managed database service (e.g., AWS RDS, Google Cloud SQL), or wants to run a database directly via Docker Compose without Kubernetes, this skill is not the right fit.

If the user doesn't have a Kubernetes cluster yet but wants one, this skill set includes creating a local K8s cluster for development and testing.

What is KubeBlocks?

KubeBlocks is a Kubernetes operator that manages 30+ database engines on any K8s cluster. It provides a unified API for the full lifecycle — from provisioning and scaling to backup, restore, and observability — across relational, NoSQL, streaming, vector, and graph databases.

  • Official docs: https://kubeblocks.io/docs/preview/user_docs/overview/introduction
  • Full LLM doc index: https://kubeblocks.io/llms-full.txt
  • GitHub: https://github.com/apecloud/kubeblocks

Quick Status Check

Before performing any operation, verify the current state:

# Check if KubeBlocks is installed
kubectl -n kb-system get pods

# List all database clusters across namespaces
kubectl get cluster -A

# Check KubeBlocks version
helm list -n kb-system | grep kubeblocks

If KubeBlocks is not installed, start with the install-kubeblocks skill. If there is no Kubernetes cluster at all, start with create-local-k8s-cluster.

Skill Map

Read the skill that matches the user's intent. Each skill is a self-contained guide with YAML templates, step-by-step workflow, and troubleshooting.

Getting Started

User IntentSkill
Create a local K8s test clustercreate-local-k8s-cluster
Install KubeBlocks operatorinstall-kubeblocks
Install/manage database engine addonsmanage-addons

Create a Database

User IntentSkill
Create a MySQL clusteraddon-mysql
Create a PostgreSQL clusteraddon-postgresql
Create a Redis clusteraddon-redis
Create a MongoDB clusteraddon-mongodb
Create a Kafka clusteraddon-kafka
Create an Elasticsearch clusteraddon-elasticsearch
Create a Milvus (vector DB) clusteraddon-milvus
Create a Qdrant (vector DB) clusteraddon-qdrant
Create a RabbitMQ clusteraddon-rabbitmq
Create any other database (generic)create-cluster
Delete a database clusterdelete-cluster

Day-2 Operations

User IntentSkill
Stop / Start / Restart a clustercluster-lifecycle
Scale CPU / Memory (vertical)vertical-scaling
Add / remove replicas or shardshorizontal-scaling
Expand storage volumevolume-expansion
Change database parametersreconfigure-parameters
Primary / secondary switchoverswitchover
Upgrade database engine versionminor-version-upgrade
Rebuild a failed replicarebuild-replica
Upgrade KubeBlocks operatorupgrade-kubeblocks

Data Protection

User IntentSkill
Backup cluster databackup
Restore from backup / PITRrestore

Security & Networking

User IntentSkill
Manage database passwords / accountsmanage-accounts
Configure TLS / mTLS encryptionconfigure-tls
Expose service externally (LoadBalancer/NodePort)expose-service

Observability

User IntentSkill
Setup monitoring (Prometheus/Grafana)setup-monitoring

Troubleshooting

User IntentSkill
Cluster not working, error, failed, stuck, CrashLoopBackOfftroubleshoot

Decision Tree

Use this when the user's intent needs clarification:

User needs a database
├─ Is KubeBlocks installed?
│  ├─ No  → Do they have a K8s cluster?
│  │        ├─ No  → create-local-k8s-cluster → install-kubeblocks
│  │        └─ Yes → install-kubeblocks
│  └─ Yes → Continue below
│
├─ Create a database
│  ├─ Is the engine addon installed?
│  │  ├─ No  → manage-addons → then create cluster
│  │  └─ Yes → Which engine?
│  │           ├─ MySQL/PG/Redis/MongoDB/Kafka/ES/Milvus/Qdrant/RabbitMQ → addon-{engine}
│  │           └─ Other → create-cluster (generic)
│  └─ Don't know which engine? → Recommend based on use case:
│     ├─ Relational / SQL         → addon-postgresql or addon-mysql
│     ├─ Cache / session store    → addon-redis
│     ├─ Document store           → addon-mongodb
│     ├─ Event streaming          → addon-kafka
│     ├─ Full-text search / logs  → addon-elasticsearch
│     ├─ Vector similarity / RAG  → addon-milvus or addon-qdrant
│     └─ Message queue            → addon-rabbitmq or addon-kafka
│
├─ Operate an existing database
│  ├─ Scale CPU/Memory      → vertical-scaling
│  ├─ Add/remove replicas   → horizontal-scaling
│  ├─ Expand disk            → volume-expansion
│  ├─ Change DB config       → reconfigure-parameters
│  ├─ Switchover primary     → switchover
│  ├─ Upgrade DB version     → minor-version-upgrade
│  ├─ Rebuild failed replica → rebuild-replica
│  ├─ Stop / Start / Restart → cluster-lifecycle
│  └─ Delete permanently     → delete-cluster
│
├─ Protect data
│  ├─ Backup                 → backup
│  └─ Restore / PITR         → restore
│
├─ Secure the database
│  ├─ Manage passwords       → manage-accounts
│  ├─ Enable TLS/SSL         → configure-tls
│  └─ Expose externally      → expose-service
│
├─ Monitor                   → setup-monitoring
├─ Upgrade KubeBlocks itself → upgrade-kubeblocks
└─ Something is broken       → troubleshoot

Engine Recommendation Guide

When the user needs a database but hasn't chosen an engine, recommend based on their use case:

Use CaseRecommended EngineWhy
Web app backend, relational data, SQLPostgreSQLMost versatile, strong ecosystem
Legacy app compatibility, MySQL protocolMySQLDrop-in for MySQL-dependent apps
Caching, sessions, rate limitingRedisSub-millisecond latency, simple API
Flexible schema, document storageMongoDBSchema-free, horizontal scaling
Event streaming, log pipelinesKafkaHigh throughput, durable ordered streams
Full-text search, log analyticsElasticsearchInverted index, powerful query DSL
AI embeddings, similarity search, RAGMilvus or QdrantPurpose-built vector indexes
Task queues, pub/sub messagingRabbitMQFlexible routing, multiple protocols

Disambiguation Guide

"Scale" ambiguity

User saysSkill
"scale up", "more CPU", "more memory", "resize"vertical-scaling
"add replicas", "more nodes", "scale out", "add shards"horizontal-scaling
"more disk", "more storage", "expand volume"volume-expansion

"Delete" vs "Stop"

User saysSkill
"delete", "remove", "destroy", "drop" (permanent)delete-cluster
"stop", "pause", "shut down" (temporary, keeps data)cluster-lifecycle

"Upgrade" ambiguity

User saysSkill
"upgrade MySQL/PG version", "patch database"minor-version-upgrade
"upgrade KubeBlocks", "update operator"upgrade-kubeblocks

Safety Patterns

Before performing any cluster-modifying operation, review the safety-patterns reference. Key rules:

  • Dry-run before apply: Always run kubectl apply --dry-run=server before any real kubectl apply.
  • Confirm before destructive actions: Deletions, scale-in, stop, and terminationPolicy changes require explicit user confirmation. List backups and affected resources first.
  • Credential handling: Commands like kubectl get secret ... -o jsonpath expose database passwords. Only run these when the user explicitly requests credentials, and warn that the output contains sensitive data.
  • kubectl exec: Entering database pods (kubectl exec -it) gives shell access to production data. Always confirm with the user before executing.
  • Production protection: Clusters with terminationPolicy: DoNotTerminate should be treated with extra caution. Recommend backups before risky operations (upgrade, switchover, reconfigure).

Common Debugging Commands

kubectl describe cluster <cluster-name> -n <namespace>
kubectl get opsrequest -n <namespace>
kubectl get component -n <namespace>
kubectl logs -n <namespace> <pod-name> -c <container-name>
kubectl -n kb-system logs -l app.kubernetes.io/name=kubeblocks --tail=100

Documentation Links

ResourceURL
Introductionhttps://kubeblocks.io/docs/preview/user_docs/overview/introduction
Supported Addonshttps://kubeblocks.io/docs/preview/user_docs/overview/supported-addons
Full LLM Indexhttps://kubeblocks.io/llms-full.txt
GitHub Repositoryhttps://github.com/apecloud/kubeblocks
Releaseshttps://github.com/apecloud/kubeblocks/releases

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.55%
按下载量换算2,348

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills