k8s-autopilot
Multi-agent framework for Kubernetes Helm chart generation and workload management.
583
k8s-autopilot is an intelligent, multi-agent framework that automates the complete lifecycle of Kubernetes operations. Built on LangChain and LangGraph, it acts as a unified platform for both Helm Chart Generation (transforming natural language requirements into production-ready charts) and Active Cluster Management (installing, upgrading, and maintaining releases with Human-in-the-loop safety).
The easiest way to interact with k8s-autopilot is using the TalkOps Web UI via Docker Compose, which sets up the complete stack including the k8s-autopilot agent, Helm MCP Server, and TalkOps Web UI.
Create a .env file in the project root with your LLM provider API key:
# Required: LLM Provider API Key
OPENAI_API_KEY=your_openai_api_key_here
# Optional: Customize LLM models (defaults shown below)
# LLM_PROVIDER=openai
# LLM_MODEL=gpt-4o-mini
# LLM_HIGHER_MODEL=gpt-4o
# LLM_DEEPAGENT_MODEL=o1-mini
Start the services using Docker Compose:
docker-compose up -d
This will start three services:
Access the Web UI by opening your browser to:
http://localhost:8080
Start chatting with the agent to create Helm charts, manage releases, or query your cluster:
Helm Chart Generation:
Create a Helm chart for nginx
Helm Management (requires Helm MCP Server):
List all Helm releases in my cluster
or
Install argo-cd helm chart from this repository - https://argoproj.github.io/argo-helm
The agent will guide you through the process, asking for clarifications if needed, and generate production-ready Helm charts or perform cluster operations via MCP server.
Access generated charts: Charts are saved to ./helm_output directory on your host machine.
k8s-autopilot automates the end-to-end lifecycle of Kubernetes operations, from initial design to active cluster management:
ā Fully Supported:
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY | OpenAI API key for LLM provider | Yes* |
A2A_HOST | A2A server host (default: 0.0.0.0) | No |
A2A_PORT | A2A server port (default: 10102) | No |
* At least one LLM provider API key is required.
k8s-autopilot supports a wide range of LLM providers including OpenAI, Anthropic, Google Gemini, Azure, and AWS Bedrock. The framework is designed to be provider-agnostic, allowing you to choose the best models for your specific requirements and budget.
Multi-Provider Architecture:
Example Configuration:
# Supervisor (High Reasoning)
LLM_DEEPAGENT_PROVIDER="openai"
LLM_DEEPAGENT_MODEL="o1-mini"
# Sub-Agents (High Speed/Low Cost)
LLM_PROVIDER="google_genai"
LLM_MODEL="gemini-1.5-flash"
k8s-autopilot follows a hierarchical supervisor-with-swarms pattern, leveraging LangChain's Deep Agents and LangGraph for orchestration.
k8s-autopilot supports two primary workflows:
Both workflows include multiple HITL gates for safety and human oversight.
latest - Latest stable releasev0.2.0 - Current versionThis project is licensed under the Apache License 2.0 - see the LICENSEā file for details.
Built with ā¤ļø for the DevOps and Infrastructure community
Content type
Image
Digest
sha256:f37adf287ā¦
Size
128.5 MB
Last updated
6 months ago
docker pull sandeep2014/k8s-autopilot:v0.3.0