Kubernetes 舰队的中央飞行员✈️✈️
k8s_pilot是一个轻量级的集中式控制平面服务器,用于同时管理多个 Kubernetes 集群。
借助强大的工具和直观的 API,您可以从一个驾驶舱观察和控制所有集群。
🚀 概述
🔄 支持多集群上下文切换
🔧 支持对最常见的 Kubernetes 资源进行CRUD 操作
⚙️ 由MCP为 Claude AI 及其他领域提供支持
🧰 先决条件
Python 3.13或更高版本
uv包管理器访问 Kubernetes 集群(
~/.kube/config或集群内配置)
# Install uv (if not installed)
# For MacOS
brew install uv
# For Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
安装
# Clone the repository
git clone https://github.com/bourbonkk/k8s-pilot.git
cd k8s-pilot
# Launch with uv + MCP
uv run --with mcp[cli] mcp run k8s_pilot.py
与 Claude Desktop 一起使用
使用此配置从 Claude 内部运行 k8s_pilot MCP 服务器:
{
"mcpServers": {
"k8s_pilot": {
"command": "uv",
"args": [
"--directory",
"<path-to-cloned-repo>/k8s-pilot",
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"k8s_pilot.py"
]
}
}
}
替换为您克隆 repo 的实际目录。
设想
使用 pypy 命名空间中的 nginx:latest 镜像创建一个部署,并创建一个连接到它的服务。
主要特点
多集群管理
与多个 Kubernetes 集群无缝交互
执行上下文感知操作
通过 MCP 提示轻松在集群之间切换
资源控制
查看、创建、更新、删除:
部署、服务、Pod
ConfigMap、Secret、Ingress
StatefulSet、DaemonSet
角色、ClusterRoles
持久卷和声明
命名空间操作
创���/删除命名空间
列出命名空间中的所有资源
管理标签和资源配额
节点管理
查看节点详细信息和条件
警戒/解除警戒,标签/污点节点
列出每个节点的 Pod
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。
Related MCP Servers
- Asecurity-licenseAqualityA server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.Last updated -259
- -security-license-qualityProvides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -706MIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -133MIT License
- -securityFlicense-qualityAn MCP server that enables interaction with multiple Kubernetes clusters simultaneously, providing comprehensive tools for cluster management, resource operations, and diagnostics across different environments.Last updated -