Back to Home
selvanayaki678 icon

k8s-ai-agent

by selvanayaki678

Overview

An AI agent that allows users to query and manage their Kubernetes cluster using natural language questions.

Installation

Run Command
python k8s-ai-agent.py

Environment Variables

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION
  • MCP_SERVER_MODE

Security Notes

The MCP Server deployment configuration (`deployment.yaml`) grants extremely broad ClusterRole permissions, including 'create', 'update', 'patch', 'delete' on core Kubernetes resources (pods, services, deployments, etc.) and 'get', 'list', 'watch' on ALL resources in ALL API groups. This level of access is explicitly noted as 'full read/write access for troubleshooting' but presents a critical security risk if the MCP server is compromised. Furthermore, the MCP server is exposed to the internet via a LoadBalancer service. The internal source code for the MCP server Docker image itself is not provided, preventing a full audit of its implementation and potential vulnerabilities that could exploit these excessive permissions.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-11-27

Tags

KubernetesAI AgentAmazon BedrockEKSInfrastructure-as-Code