workflows.fit
Back to n8n workflows
n8n templateFreeBy Aadarsh Jain

Kubernetes management with natural language using GPT-4o and MCP tools

Who is this for? This workflow is designed for DevOps engineers, platform engineers, and Kubernetes administrators who want to interact with their Kubernetes clusters through natural language queries in n8n. It's perf...

AILangchainCore NodesLm Chat Open AiAgentChat TriggerN8n-nodes-mcp.mcp Client
Loading interactive preview...

Template notes

Who is this for?

This workflow is designed for DevOps engineers, platform engineers, and Kubernetes administrators who want to interact with their Kubernetes clusters through natural language queries in n8n. It's perfect for teams who need quick cluster insights without memorizing complex kubectl commands or switching between multiple cluster contexts manually.

How it works?

The workflow operates in three intelligent stages:

1. Cluster Discovery & Context Switching - Automatically lists available clusters from your kubeconfig and switches to the appropriate cluster based on your natural language query 2. Command Generation - Uses GPT-4o to analyze your request and generate the correct kubectl command with proper flags, selectors, and output formatting 3. Command Execution - Executes the generated kubectl command against your selected cluster and returns the results

The workflow supports multi-cluster environments and can handle queries like: - "Show me all pods in production cluster" - "List failing deployments in production" - "Get pod details in kube-system namespace"

Setup

1. Clone the MCP Server bash git clone https://github.com/aadarshjain/kubectl-mcp-server cd kubectl-mcp-server