k8s-pilot

by bourbonkk

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文件。

-
security - not tested
-
license - not tested
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

轻量级的集中式控制平面服务器,可同时管理多个 Kubernetes 集群,支持上下文切换和对常见 Kubernetes 资源的 CRUD 操作。

  1. 🧰 先决条件
    1. 安装
      1. 与 Claude Desktop 一起使用
        1. 设想
          1. 主要特点
            1. 多集群管理
            2. 资源控制
            3. 命名空间操作
            4. 节点管理
          2. 执照

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              This project is intended as a both MCP server connecting to Kubernetes and a library to build more servers for any custom resources in Kubernetes.
              Last updated -
              267
              Go
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A 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 -
              3
              Python
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.
              Last updated -
              427
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A gateway for Generative AI systems to interact with multiple Kubernetes clusters through Model Context Protocol, enabling comprehensive Kubernetes resource operations and multi-cluster management.
              Last updated -
              54
              1
              TypeScript
              • Apple

            View all related MCP servers

            ID: varavj97rf