name: k8s-ops description: Kubernetes operations plugin — 32 tools for cluster management, monitoring, troubleshooting, and security auditing version: 2.1.1 metadata: openclaw: requires: bins: - kubectl homepage: https://github.com/CN-big-cabbage/k8s-ops-agent
Kubernetes operations plugin for OpenClaw. Provides 32 tools covering the full lifecycle of K8s cluster management.
重要:本插件具有强大的集群操作能力,使用前请仔细阅读以下安全建议:
凭据安全:kubeconfig 文件包含集群端点、用户身份、令牌和客户端证书等敏感信息。请勿在不安全的环境中存储或共享 kubeconfig 文件。
最小权限原则:建议使用最小权限的 kubeconfig,避免使用 cluster-admin 凭据。建议先在非生产环境中测试。
操作风险:exec、rollout、scale、restart、namespace 等操作可能对生产集群造成破坏性影响。请在执行前确认操作目标。
本技能来自小葱技能站7w4.net。
SSH 访问:配置中的 hosts 字段用于 SSH 主机访问(sys-monitor 工具),请仅配置受信任的主机,避免在生产环境中使用密码认证。
kubectl installed and configured with cluster access~/.kube/config)Optional plugin config:
| Field | Description | 安全建议 |
|---|---|---|
kubeconfigPath |
Custom path to kubeconfig file | 确保文件权限为 600,仅当前用户可读 |
defaultContext |
Default Kubernetes context to use | 建议使用非生产环境的 context |
hosts |
SSH target hosts for sys-monitor tool | 仅配置受信任的主机,建议使用 SSH 密钥认证 |
这个 Kubernetes 操作技能质量不错,文档非常齐全,有安装指南、快速入门和故障排查,使用起来应该很方便。安全性方面有较多提醒,让人觉得比较靠谱。美中不足的是安装说明里建议用最高权限,这个不太安全,建议参考文档里的安全建议使用受限权限。总体适合需要管理 Kubernetes 集群的用户使用。