Skip to main content
Glama
yuankraj

agentic-k8s-aiops

by yuankraj

⎈ Agentic K8s AIOps πŸ€–

License Python Kubernetes AI

An autonomous, AI-powered Kubernetes troubleshooting and remediation agent. This tool continuously monitors your Kubernetes cluster, detects anomalies, and leverages local LLMs (via Ollama) to diagnose and automatically fix issuesβ€”all without relying on external cloud APIs.

🌟 Key Features

  • πŸ” Automated Cluster Scanning: Detects CrashLoopBackOff, OOMKilled, ImagePullBackOff, and pending pods.

  • πŸ€– Local AI Diagnosis: Powered by the gemma4:cloud model via Ollama for secure, on-premise AI processing.

  • πŸ› οΈ Autonomous Auto-Remediation: Executes kubectl commands directly to resolve detected issues using a ReAct agent framework.

  • πŸ’» Claude Code Native (MCP): Fully integrated Model Context Protocol (MCP) server for terminal-based interactions.

  • 🎨 Beautiful Web Dashboard: A sleek, dark-themed UI for visualizing cluster health, viewing AI reasoning, and managing self-healing workflows.

Related MCP server: LUMINO MCP Server

πŸ—οΈ Architecture

The platform operates using a modular ReAct (Reasoning and Acting) pattern:

  1. Observation: The k8s_scanner.py module continuously polls the cluster for degraded states.

  2. Thinking: The ai_agent.py evaluates the issue using the local Ollama LLM.

  3. Action: Through the MCP server, the agent executes targeted kubectl commands to remediate the issue.

πŸš€ Quick Start

Ensure you have Python 3.11+, Ollama, and kubectl configured.

# 1. Clone the repository & setup
git clone https://github.com/yuankraj/agentic-k8s-aiops.git
cd agentic-k8s-aiops
bash setup.sh

# 2. Start the local Ollama server
ollama serve

# 3. Launch the Web Dashboard
source .venv/bin/activate
python app.py

# 4. Open in your browser
# http://localhost:8000

πŸ“– Comprehensive Usage Guide

This agent can be run in three different modes:

  1. Web UI Mode (via FastAPI dashboard)

  2. Claude Code Native Mode (via FastMCP terminal server)

  3. Pure Terminal Chat Mode (via Python script)

πŸ‘‰ Check out the USAGE.md file for detailed step-by-step instructions for all execution modes.

πŸ“‚ Project Structure

.
β”œβ”€β”€ app.py            # Main web server (FastAPI)
β”œβ”€β”€ mcp_server.py     # FastMCP Server (Claude Code integration)
β”œβ”€β”€ k8s_scanner.py    # Kubernetes cluster scanner for fault detection
β”œβ”€β”€ ai_agent.py       # Ollama ReAct AI agent with auto-fix tools
β”œβ”€β”€ terminal_chat.py  # Pure terminal interaction script
β”œβ”€β”€ setup.sh          # One-click environment configuration
β”œβ”€β”€ requirements.txt  # Python dependencies
└── static/           # Frontend assets (UI, styling, logic)
    β”œβ”€β”€ index.html    
    β”œβ”€β”€ style.css     
    └── app.js        

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.


Built with ❀️ for resilient Kubernetes operations.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that enables AI assistants to interact with Kubernetes clusters by translating natural language into kubectl and Helm operations. It allows users to query, manage, and diagnose Kubernetes resources and cluster states through a seamless integration.
    20
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    An open source MCP server empowering SREs with intelligent observability, predictive analytics, and AI-driven automation across Kubernetes, OpenShift, and Tekton environments.
    11
    Apache 2.0
  • F
    license
    -
    quality
    C
    maintenance
    MCP server that filters Kubernetes warning/failure events and presents them to AI assistants for diagnostics. Enables AI to identify and troubleshoot cluster issues without consuming context on normal events.

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors β€” no code.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuankraj/agentic-k8s-aiops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server