Content
# k8s-assistant
A natural language interface for Kubernetes troubleshooting powered by AI
## Features
- 🤖 Natural language queries for Kubernetes operations
- 🔒 Safe operations - prevents destructive commands
- 📊 AI-powered analysis and root cause identification
- 🎯 Intelligent command suggestions
- 📝 Detailed troubleshooting reports
- 🖥️ Cross-platform support (Windows, macOS, Linux)
## Prerequisites
1. Python 3.12
2. kubectl is installed and configured
3. Anthropic API key (Claude)
4. OpenAI API key (GPT)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/HarshDhussa1008/k8s_assistant.git
```
2. Navigate to the project directory:
```bash
cd k8s_assistant
```
3. Install dependencies:
```bash
python3.12 -m pip install -r requirements.txt
```
4. Install the package:
```bash
python3.12 -m pip install -e .
```
## Run the assistant
```bash
k8s-assistant
```
## Usage Examples
- "List all pods in the kube-system namespace"
- "Show me pods that are not running"
- "Check the status of my deployments"
- "What's wrong with my cluster?"
- "Show me resource usage"
## Configuration
Set your API keys in the configuration files:
- Edit `k8s_assistant/llms/claude.py` - add your Anthropic API key
- Edit `k8s_assistant/llms/gpt.py` - add your OpenAI API key
Or use environment variables:
```bash
export ANTHROPIC_API_KEY="your-claude-key"
export GPT_API_KEY="your-openai-key"
```
Connection Info
You Might Also Like
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Sequential Thinking
A structured MCP server for dynamic problem-solving and reflective thinking.
Fetch
Retrieve and process content from web pages by converting HTML into markdown format.
Context 7
Context7 MCP provides up-to-date code documentation for any prompt.
context7-mcp
Context7 MCP Server provides natural language access to documentation for...
chrome-devtools-mcp
Chrome DevTools for coding agents