Skip to main content

Quickstart

Deploy the TalkOps Kubernetes Agent (k8s-autopilot), connect the web UI, configure your LLM provider credentials, and run your first live cluster task in under five minutes.

Read https://www.talkops.ai/docs/agents/application/kubernetes-agent/quickstart and help me install k8s-autopilot and connect it to my Kubernetes cluster.

Prerequisites​

  • Docker & Docker Compose: Docker Engine 24+ and Docker Compose v2+
  • Kubernetes access: A valid ~/.kube/config pointing to a local (kind, minikube, k3d, Docker Desktop) or remote cluster
  • LLM API key: An API key from at least one supported provider (Google Gemini, OpenAI, Anthropic, OpenRouter, AWS Bedrock, or Ollama)

Install and run your first task​

1
Run the one-line installer

Execute the installer script in your terminal:

curl -LsSf https://raw.githubusercontent.com/talkops-ai/k8s-autopilot/main/scripts/install.sh | bash

The script verifies Docker, Docker Compose, port availability (8888 for Web UI, 10102 for the A2A agent server), and ~/.kube/config, then pulls the images and starts the stack in ~/.k8s-autopilot/.

Windows users

Run the installer inside WSL 2 (Windows Subsystem for Linux) so Docker containers can access your kubeconfig and cluster network.

2
Open the Web UI and connect the agent

Navigate to http://localhost:8888 in your browser. On the Connect to Agents screen, click the Quick Connect preset for K8s Autopilot (http://localhost:10102):

Connect to Agents — click the Quick Connect preset or enter the agent URL manually

Once connected, the agent card displays its discovered A2A capabilities. Click Setup to configure your model provider credentials:

Agent connected — click Setup for first-time configuration, or Launch to start chatting

3
Configure LLM provider credentials

In Settings → Auth & Keys, select a provider row to add your API key:

Settings — Auth & Keys page showing all supported providers

ProviderEnvironment keyWhere to generate
Google GeminiGEMINI_API_KEYGoogle AI Studio
OpenAIOPENAI_API_KEYOpenAI Platform
AnthropicANTHROPIC_API_KEYAnthropic Console
Zero-restart hot reloading

Configured keys take effect immediately—you can switch across 20+ providers and models from the UI at any time without restarting containers. See Model Providers for the full list.

4
Launch the chat and run your first task

Click ← Back to Chat in the top right corner, then click Launch → on the agent card. Enter your first prompt:

List all pods in the default namespace and tell me if any are unhealthy

The Supervisor routes your request to the K8s Operator, which queries your cluster via kubernetes-mcp-server and streams back pod health. For any operation that modifies cluster state, k8s-autopilot renders an interactive A2UI approval card and waits for your confirmation.

Settings UI overview​

All runtime settings are managed directly from the six panels in the Settings sidebar:

PanelWhat it configures
Auth & KeysAPI keys, custom base URLs, and default models for 20+ LLM providers plus Tavily web search
SkillsOperational SKILL.md playbooks loaded by each operator (helm-operation, argocd-gitops, etc.)
PluginsRemote plugin marketplaces and installed extension bundles (skills, subagents, MCP servers)
MCP ServersBuilt-in and custom MCP server endpoints, health probes, and per-server enable/disable toggles
TracesReal-time LangSmith tracing (LANGSMITH_API_KEY, project name, endpoint)
Runtime ConfigCheckpointer storage hot-swap (SQLite vs. PostgreSQL), kubeconfig context, and observability URLs
View Traces and Runtime Config screenshots

Settings — Traces page for LangSmith observability

Settings — Runtime Config page for storage backend, cluster access, and MCP server endpoints

Alternative installation methods​

Manual Docker Compose​

If you prefer to manage the compose stack directly without the installer script:

mkdir -p ~/.k8s-autopilot && cd ~/.k8s-autopilot

curl -fsSL https://raw.githubusercontent.com/talkops-ai/k8s-autopilot/main/docker-compose.all-in-one.yml \
-o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/talkops-ai/k8s-autopilot/main/.env.example \
-o .env

docker compose up -d

Run from source (development)​

Requires Python 3.12+, uv, and Node.js 20+:

git clone https://github.com/talkops-ai/k8s-autopilot.git
cd k8s-autopilot

# 1. Start the backend A2A agent server on port 10102
uv venv --python 3.12 && source .venv/bin/activate
uv pip install -e .
k8s-autopilot --host 0.0.0.0 --port 10102

In a second terminal, start the web UI on port 8888:

cd client-ui
npm install
npm run dev

Common lifecycle commands​

Manage the installed Docker Compose stack from ~/.k8s-autopilot:

# View container status
docker compose -f ~/.k8s-autopilot/docker-compose.yml ps

# Tail agent logs
docker compose -f ~/.k8s-autopilot/docker-compose.yml logs -f k8s-autopilot

# Pull latest images and restart
docker compose -f ~/.k8s-autopilot/docker-compose.yml pull && \
docker compose -f ~/.k8s-autopilot/docker-compose.yml up -d

Example prompts to try​

DomainExample prompt
Cluster health"Check all namespaces for pods in CrashLoopBackOff or Pending state and explain the root cause"
Helm lifecycle"Search Bitnami for Redis, validate values for a replica count of 2, and run a dry-run install in namespace cache"
GitOps (ArgoCD)"List all ArgoCD applications, check if any are OutOfSync, and show the manifest diff"
Observability"Query Prometheus for 5xx error rates by service over the last 30 minutes and correlate with Loki error logs"
Goal & rubric"Deploy nginx via Helm in the demo namespace and verify all pods reach Ready with a rubric check"

Next steps​