K8M logo

K8M

by weibaohui

K8M is an AI-powered Mini Kubernetes AI Dashboard designed to simplify cluster management. It is built on AMIS and uses `kom` as a Kubernetes API client, supporting interaction with models like Qwen2.5-Coder-7B and DeepSeek-R1-Distill-Qwen-7B, while also allowing integration with private large models (including ollama).

View on GitHub

Last updated: N/A

What is K8M?

K8M is a lightweight Kubernetes management console that integrates AI capabilities to simplify cluster operations. It provides a user-friendly interface, efficient performance, and supports multi-cluster management with fine-grained permission control.

How to use K8M?

  1. Download the latest version from GitHub. 2. Run the executable ./k8m. 3. Access the dashboard via browser at http://127.0.0.1:3618. Configuration can be done via command-line arguments or environment variables. Docker-compose is also supported.

Key features of K8M

  • Miniaturized design with a single executable

  • User-friendly interface for easy Kubernetes management

  • High performance backend built with Golang and frontend with Baidu AMIS

  • AI-driven features like explainable descriptions, resource guidance, YAML translation, log analysis, and command recommendations

  • MCP integration for managing multiple clusters with AI-driven tools

  • Multi-cluster permission management

  • Pod file management

  • CRD management

  • Helm chart management

  • Cross-platform support (Linux, macOS, Windows, x86, ARM)

  • Open Source

Use cases of K8M

  • Simplifying Kubernetes cluster management for developers and operators

  • Providing AI-powered insights and recommendations for troubleshooting and optimization

  • Managing multiple Kubernetes clusters from a single console

  • Automating common Kubernetes tasks with MCP integration

  • Enabling secure access to Kubernetes resources with fine-grained permission control

FAQ from K8M

How do I configure K8M to use my own ChatGPT API key?

Set the OPENAI_API_KEY environment variable with your API key.

How do I manage multiple Kubernetes clusters with K8M?

Configure the kubeconfig path using the KUBECONFIG environment variable. K8M will automatically scan for kubeconfig files in the same directory.

How do I enable AI features in K8M?

Ensure the ENABLE_AI environment variable is set to "true" (default).

What is MCP and how does K8M use it?

MCP (Multi-Cluster Platform) is a set of tools for managing multiple Kubernetes clusters. K8M integrates MCP to provide AI-driven automation for cluster operations.

Where can I find more documentation and support for K8M?

Refer to the documentation in the docs/README.md file and contact the author via WeChat (daluomadetaiyang, ID: daluomadetaiyang, mention k8m).