Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
An autonomous agentic harness for Kubernetes. Proactive fleet audits, declarative GitOps remediation, and ChatOps in one place.
Fetched from the repository for this visit.
Stop driving your clusters. Start delegating them.
kube-agents replaces the traditional imperative DevOps presentation layer — kubectl, gcloud, the Google Cloud Console — with autonomous, proactive AI agents that manage your Kubernetes/GKE infrastructure, enforce multi-tenant governance, and continuously audit security posture. Instead of you reacting to pages and typing commands, a Platform Agent watches your fleet around the clock, opens pull requests with fixes, and reports to you in chat.
| Traditional Ops | With kube-agents |
|---|---|
Reactive, manual toil (kubectl + runbooks) | Proactive, intent-driven operations |
| Drift discovered during incidents | Scheduled compliance & blueprint audits (autonomous watchdogs) |
| Hand-rolled RBAC and tenancy reviews | Automated RBAC & boundary enforcement, credential isolation by design |
| Patch Tuesdays and CVE spreadsheets | Daily vulnerability & patch scans with staggered rollout orchestration |
| One human, one terminal | ChatOps with the agent over Google Chat, Slack & Microsoft Teams |
📗 Full documentation: gke-labs.github.io/kube-agents
An SRE asks for a fleet self-health check; the agent answers in the thread. An illustrative replay — the names and figures are examples. It runs live at the top of the documentation site.
The list lives on the documentation site: First prompts gives the first message to send a new install, what a healthy answer looks like, and five things to ask it next.
The fastest, zero-friction way to install kube-agents in Google Cloud Shell or your terminal:
curl -fsSL https://raw.githubusercontent.com/gke-labs/kube-agents/<RELEASE_VERSION>/install.sh | bash
Substitute <RELEASE_VERSION> with the desired version tag from GitHub Releases (for example, 0.4.0; a GitLab install needs 0.9.0 or later, a Bitbucket install 0.29.0 or later).
This interactive installer (recommended for initial setup) guides you through GCP authentication, project selection, GKE cluster setup (Autopilot or Standard), chat integrations (Google Chat & Slack), and LLM model provider credentials. Sensible defaults are detected from your gcloud context, requiring minimal input. Microsoft Teams is turned on after the install: see Microsoft Teams app setup.
For automated environments, CI/CD pipelines, and AI Agents where no interactive TTY is available, invoke the release installer with --non-interactive and CLI flags:
curl -fsSL https://raw.githubusercontent.com/gke-labs/kube-agents/<RELEASE_VERSION>/install.sh | bash -s -- \
--non-interactive \
--gcp-project-id="my-gcp-project" \
--gke-cluster-name="platform-agent-host" \
--gcp-region="us-central1" \
--model-provider="gemini" \
--permission-set="read-only"
Or give this prompt to an AI coding assistant. It needs no checkout of this repository, and tells the assistant to confirm the target with you and show you the --dry-run summary before it creates any cloud resources:
Install the latest official release of kube-agents (github.com/gke-labs/kube-agents) into my GCP project.
Follow INSTALL.md from that release tag — do not invent installer URLs, namespaces, or model names.
First inspect my gcloud project and existing GKE clusters and confirm the target, cluster, model provider,
and credential with me. Run install.sh with --dry-run and show me its printed summary before you change anything.
Only run the real install after I say yes.
The full procedure behind the prompt, including the credential and consent-flag checks, is in INSTALL.md. The GitOps repository can be on GitHub, on GitLab (gitlab.com or a self-managed instance), or on Bitbucket (Cloud or Data Center); INSTALL.md gives the flags for each. An assistant working in a checkout of this repository also picks up the install-kube-agents skill, which covers the same install.
Prefer to drive the engine by hand? Unpack kube-agents-<RELEASE_VERSION>.tar.gz from GitHub Releases (recommended), or clone the repository at an official release tag if a Git checkout is needed:
curl -fsSL https://github.com/gke-labs/kube-agents/releases/download/<RELEASE_VERSION>/kube-agents-<RELEASE_VERSION>.tar.gz | tar -xz
cd kube-agents-<RELEASE_VERSION>
./install.sh # the interview, then one terraform apply
# or, if a Git checkout is needed instead:
# git clone --branch <RELEASE_VERSION> https://github.com/gke-labs/kube-agents.git
# cd kube-agents && ./install.sh
# or, with your own terraform.tfvars:
cd terraform/examples/full-install && ./lifecycle.sh apply
Both paths run the same engine: terraform/examples/full-install provisions every GCP resource and installs the Helm chart that owns every Kubernetes one, end to end and idempotently. ./uninstall.sh (or lifecycle.sh destroy) reverses it. See the quick start for the walkthrough, or INSTALL.md for manual and local-development paths.
The harness runs co-located agents in a single operator-deployed pod: the Planning Agent — the conversational front door that receives every chat message, works out what it needs, and delegates that work over a shared kanban board — the Platform Agent — the master custodian and agent architect that manages the GKE infrastructure lifecycle, establishes multi-tenancy boundaries, and enforces fleet-wide compliance — and a Cluster Agent per managed cluster, a single-cluster SRE persona the Platform Agent scaffolds from the agents/cluster/ template for runtime operations and workload debugging, with read-only access to the cluster it watches. The Platform Agent is driven by:
agents/platform/SOUL.md defines its identity, its Automation First rule (no manual cluster mutations; changes flow through declarative, PR-based workflows), and its Least Privilege constraint.agents/platform/governance/ covering compliance and security audits, fleet consistency drift, cost analysis, stockout prevention, and security patch orchestration.SKILL.md bundles under agents/platform/skills/: cluster creation, app onboarding, cost analysis, backup & DR, and manifest generation. Single-cluster runtime skills — workload troubleshooting, observability, autoscaling, storage — belong to the Cluster Agent in agents/cluster/skills/. See the skill catalog.agents/platform/cron/jobs.json that keep the fleet honest without human prompting. Ticking belongs to the Planning Agent's gateway, the only running one, so a job on its roster advances the Platform Agent's schedule once a minute. See proactive autonomy.The runtime is built on the Hermes agent framework and wires in MCP servers for platform control and GKE's hosted MCP endpoint, so the agent speaks to your clusters through structured tools rather than raw shell access.
For three scenarios from trigger to pull request (a scheduled audit, a crash loop alert, and a chat question), see A day with kube-agents.
The Platform Agent runs these audits on a schedule and posts each report to chat. Each skill is a procedure that the Platform Agent or a Cluster Agent loads when a request or an audit needs it. The skill catalog describes each skill, and the cron job reference lists every scheduled job.
| Audit | Schedule (UTC) | Procedure |
|---|---|---|
| Security & RBAC Posture Audit | Daily 06:20 | compliance_audit_sop.md |
| Workload Reliability Audit | Daily 06:50 | obtainability_audit_sop.md |
| GCE Compute Engine and MIG Fleet Audit | Daily 07:45 | gce_compute_fleet_sop.md |
| GCP Networking Fabric & VPC IPAM Audit | Daily 08:00 | gcp_networking_fabric_sop.md |
| AI Workload Security Audit | Daily 08:50 | ai_security_audit_sop.md |
| Fleet Stockout Prevention & Capacity Audit | Daily 09:20 | stockout_prevention_sop.md |
| Upgrade & Patch Readiness Audit | Weekly, Monday 07:20 | security_patch_orchestrator_sop.md |
| Fleet Waste Audit | Weekly, Monday 07:50 | fleet_wide_cost_analysis_sop.md |
| Fleet Consistency Drift Audit | Weekly, Monday 08:20 | fleet_consistency_drift_sop.md |
| Upgrade Retrospective | Weekly, Sunday 18:00 | upgrade_retrospective_sop.md |
| Area | Skills |
|---|---|
| Cluster lifecycle | cluster-agent-lifecycle, gke-cluster-creation, gke-multitenancy, manage-cluster |
| Workloads | gke-app-onboarding, gke-batch-hpc, gke-workload-scaling, gke-workload-security, gke-workload-troubleshooting, workload-rebalancing |
| Cost and capacity | capacity-obtainability, gce-compute-fleet-audit, gke-cluster-autoscaler, gke-compute-classes, gke-cost-analysis, gke-cost-optimization, gke-productionize |
| Security and compliance | gke-backup-dr, gke-platform-security, gke-workload-identity |
| Networking and storage | gcp-networking-fabric-audit, gke-networking, gke-service-networking, gke-storage |
| AI and inference | gke-ai-troubleshooting-handle-disruption-gpu-tpu, gke-ai-troubleshooting-jobset-interruption, gke-ai-troubleshooting-tpu-vbar-oom, gke-golden-path, gke-inference, gke-tpu-dynamic-slices-monitoring, gke-tpu-metrics-monitoring |
| Observability | gke-alert-configuration, gke-basics, gke-observability, kube-agents-observability |
| Reliability | fleet-upgrade-verification, gke-reliability, gke-upgrades, topology-drift, upgrade-readiness-brief |
| Manifests and remediation | gcp-config-connector, gcp-terraform, gitops-helm-chart, gke-manifest-generation, submit-suggestion |
| Meta | alert-history, chat-delivery, decision-memory, first-run-report, fleet-audit, fleet-audit-reports, github-issue-resolver, inspect-repository, kube-agents-feedback, pr-conversation, version-control |
| Cluster Agent (per-cluster runtime) | gke-load-bearing-change, gke-observability, gke-reliability, gke-rightsizing-checks, gke-stall-detection, gke-storage, gke-workload-scaling, gke-workload-security, gke-workload-troubleshooting, pod-container-creating, pod-crashloop-oom, pod-pending-scheduling, service-connectivity, topology-drift, workload-triage-scan |
| GKE Support Agent (tse) | support-escalation-bundle |
kube-agents is designed for enterprise fleets where agents must be powerful and provably contained:
<agent>-kube-proxy).umask 077), and mandatory encryption pre-flight gates.--enable-gvisor=false opts out.Exactly what is enforced on which plane — Kubernetes RBAC, GCP IAM, and the GitOps path each answer differently — is set out in Security & IAM. Read that before granting the agent access to a production project.
flowchart TB
subgraph agent["🧠 Control Plane — Agent Layer"]
SOUL["SOUL.md persona<br/>+ governance SOPs"]
SKILLS["Skills<br/>(agents/platform/skills)"]
CRON["Scheduled watchdogs<br/>(cron/jobs.json)"]
PA["Platform Agent workspace<br/>(agents/platform)"]
SOUL --> PA
SKILLS --> PA
CRON --> PA
end
subgraph cluster["☸️ Cluster Plane — Kubernetes Layer"]
OP["k8s-operator<br/>(Go / Kubebuilder)"]
CRD["PlatformAgent CRD<br/>kubeagents.x-k8s.io/v1alpha1"]
POD["Agent pod: gVisor sandbox<br/>+ Envoy credential proxy<br/>+ Fluent Bit + event watcher"]
RBAC["RBAC isolation boundaries<br/>(read-only view + explorer)"]
OP -->|reconciles| CRD
CRD --> POD
OP --> RBAC
end
subgraph integration["🔀 Integration & Routing Layer"]
LLM["LiteLLM Gateway<br/>Gemini · Vertex AI · OpenAI · Anthropic · OpenAI-compatible"]
CHAT["Messaging bridges<br/>Google Chat (Pub/Sub) · Slack (Socket Mode) · Microsoft Teams (Bot Framework)"]
GH["Minty — GitHub App<br/>token minter (KMS)"]
end
PA -.runs inside.-> POD
POD --> LLM
CHAT <--> POD
POD -->|PR-based changes| GH
Walkthrough: Architecture. The k8s-operator/ reconciles PlatformAgent custom resources into the sandboxed agent pod, its sidecars, per-agent ServiceAccounts with Workload Identity, read-only RBAC, and Services.
Looking for the end-state design?
docs/architecture/specifies a three-tier, fully read-only agent model that this repository is converging toward. It describes the target, not what ships today.
Contributions are welcome. See CONTRIBUTING.md for the CLA and where the contributor workflow is documented. Repository conventions for AI coding agents are in AGENTS.md.
Bug reports and feature requests go in issues. If your GitHub account cannot open one here, use the feedback form, which files it for you.
This is not an officially supported Google product.
This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.