Xpersona
K

Kubernetes DevOps Toolkit

CLAWHUB · Unverified

Manage, deploy, monitor, and troubleshoot Kubernetes clusters with tools for multi-cluster control, resource monitoring, log aggregation, and Helm support. Skill: Kubernetes DevOps Toolkit Owner: kaiyuelv Summary: Manage, deploy, monitor, and troubleshoot Kubernetes clusters with tools for multi-cluster control, resource monitoring, log aggregation, and Helm support. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-13T07:44:08.209Z | user Initial release Archive index: Archive v1.0.0: 8 files, 10992 bytes Files: examples/basic_usage.py (3283b), README.md (2886b), re

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s171c2g5qpr0rdyra8xbm4srbh84mjjm:kubernetes-devops-toolkit
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kaiyuelv-kubernetes-devops-toolkit/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,257 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# kubernetes-devops-toolkit

## 描述

**中文**: Kubernetes DevOps 工具包 - 完整的K8s集群管理、部署、监控和故障排查工具集

**English**: Kubernetes DevOps Toolkit - Complete K8s cluster management, deployment, monitoring and troubleshooting toolset

## 功能

- **集群管理**: 连接、配置、切换多个K8s集群
- **部署管理**: Deployment/Service/Ingress的创建、更新、回滚
- **资源监控**: Pod/Node/Namespace资源使用实时监控
- **日志收集**: 多Pod日志聚合和查询
- **故障排查**: 自动诊断常见问题并提供解决方案
- **Helm支持**: Chart管理和Release生命周期管理

## 使用场景

- 开发和生产环境的K8s集群运维
- CI/CD流水线中的K8s部署
- 故障排查和性能优化
- 多集群统一管理

## 依赖

- Python 3.8+
- kubernetes-client
- helm (可选)
- kubectl (可选)

README.md

# Kubernetes DevOps Toolkit

**中文**: Kubernetes DevOps 工具包 - 完整的K8s集群管理、部署、监控和故障排查工具集

**English**: Kubernetes DevOps Toolkit - Complete K8s cluster management, deployment, monitoring and troubleshooting toolset

## 🚀 功能特性

| 功能 | 描述 |
|------|------|
| 集群管理 | 连接、配置、切换多个K8s集群 |
| 部署管理 | Deployment/Service/Ingress的创建、更新、回滚 |
| 资源监控 | Pod/Node/Namespace资源使用实时监控 |
| 日志收集 | 多Pod日志聚合和查询 |
| 故障排查 | 自动诊断常见问题并提供解决方案 |
| Helm支持 | Chart管理和Release生命周期管理 |

## 📦 安装

```bash
pip install -r requirements.txt
```

### 前置依赖

- Python 3.8+
- kubectl (推荐 v1.25+)
- Helm (可选,用于Helm操作)
- 有效的kubeconfig文件

## 🎯 快速开始

### 1. 配置集群连接

```python
from kubernetes_devops_toolkit import K8sManager

# 使用现有kubeconfig
manager = K8sManager(kubeconfig_path="~/.kube/config")

# 或连接特定集群
manager.switch_context("production-cluster")
```

### 2. 查看集群状态

```python
# 获取所有节点
nodes = manager.get_nodes()
print(f"集群节点数: {len(nodes)}")

# 查看Pod状态
pods = manager.get_pods(namespace="default")
for pod in pods:
    print(f"{pod.name}: {pod.status}")
```

### 3. 部署应用

```python
# 创建Deployment
deployment = manager.create_deployment(
    name="my-app",
    image="nginx:latest",
    replicas=3,
    namespace="default"
)
```

### 4. 监控资源

```python
# 实时监控Pod资源使用
manager.watch_pod_resources(
    namespace="default",
    interval=5
)
```

## 📚 详细用法

### 集群管理

```python
# 列出所有上下文
contexts = manager.list_contexts()

# 切换上下文
manager.switch_context("staging")

# 验证集群连接
if manager.is_connected():
    version = manager.get_cluster_version()
    print(f"K8s版本: {version}")
```

### 故障排查

```python
# 自动诊断Pod问题
diagnosis = manager.diagnose_pod(
    pod_name="my-app-123",
    namespace="default"
)
print(diagnosis.report)

# 获取事件日志
events = manager.get_events(
    namespace="default",
    field_selector="type=Warning"
)
```

### Helm操作

```python
from kubernetes_devops_toolkit import HelmManager

helm = HelmManager()

# 安装Chart
helm.install(
    release_name="my-release",
    chart="bitnami/nginx",
    namespace="default",
    values={"replicaCount": 3}
)

# 升级Release
helm.upgrade(
    release_name="my-release",
    values={"image.tag": "2.0"}
)

# 回滚
helm.rollback(release_name="my-release", revision=1)
```

## 🧪 测试

```bash
# 运行测试
pytest tests/

# 带覆盖率报告
pytest tests/ --cov=kubernetes_devops_toolkit
```

## 📄 许可证

MIT License

## 🤝 贡献

欢迎提交Issue和PR!

_meta.json

{
  "ownerId": "kn75fxrddvv0qvj9zv5nzazw9d82v0zq",
  "slug": "kubernetes-devops-toolkit",
  "version": "1.0.0",
  "publishedAt": 1776066248209
}

skill-card.md

## Description:

Manage, deploy, monitor, and troubleshoot Kubernetes clusters with multi-cluster control, resource monitoring, log aggregation, diagnostics, and Helm lifecycle support.

This skill is ready for commercial/non-commercial use.

## Publisher:

[kaiyuelv](https://clawhub.ai/user/kaiyuelv)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and DevOps engineers use this skill to operate Kubernetes clusters, deploy applications, monitor resources, aggregate logs, diagnose pod issues, and manage Helm releases across development and production environments.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Helm install, upgrade, rollback, or list operations can target the wrong cluster because the configured kubeconfig is not passed to Helm commands.

Mitigation: Use an isolated kubeconfig and context, verify the active Helm context before changes, and prefer a patched version that passes the selected kubeconfig explicitly to every Helm command.

Risk: Using the toolkit with production Kubernetes access can read or modify live cluster resources.

Mitigation: Review carefully before installation, restrict the kubeconfig to the minimum required permissions, and test operations in a non-production context before production use.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/kaiyuelv/skills/kubernetes-devops-toolkit)
- [README.md](artifact/README.md)
- [SKILL.md](artifact/SKILL.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with Python and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May perform live Kubernetes API and Helm operations when connected to cluster credentials.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

requirements.txt

# Kubernetes DevOps Toolkit - Dependencies

# Kubernetes Client
kubernetes>=28.1.0

# YAML Processing
PyYAML>=6.0.1

# CLI Interface
click>=8.1.0
rich>=13.5.0

# HTTP Client
requests>=2.31.0

# Async Support
aiohttp>=3.8.0

# Testing
pytest>=7.4.0
pytest-asyncio>=0.21.0
pytest-cov>=4.1.0

# Utilities
tabulate>=0.9.0
python-dateutil>=2.8.0

Sponsored

Ads related to Kubernetes DevOps Toolkit and adjacent AI workflows.