Repository navigation
Releases
Releases · iyedM/kubepilot
KubePilot v0.3.0 — Native Read-Only MCP Server, vLLM & NVIDIA DCGM GPU Diagnostics, and Crash-Safe Persistence
KubePilot v0.3.0 — Native Read-Only MCP Server, vLLM & NVIDIA DCGM GPU Diagnostics, and Crash-Safe Persistence
Latest
KubePilot v0.3.0 — Read-Only MCP Server, vLLM & NVIDIA DCGM GPU Diagnostics, Streaming TTFT/TPOT & Crash-Safe Persistence
KubePilot v0.3.0 extends the zero-dependency Go (go 1.26, 0 external dependencies, strictly read-only RBAC) root-cause diagnosis engine for GenAI workloads on Kubernetes with Model Context Protocol (MCP) integration, production GPU & vLLM serving diagnostics, streaming TTFT vs. TPOT latency decomposition, crash-safe JSONL incident persistence, and Terraform Infrastructure-as-Code.
🚀 What's New in v0.3.0
1. Native Read-Only Model Context Protocol (MCP) Server (stdio & HTTP /mcp)
- Built-in JSON-RPC 2.0 MCP server (
2025-03-26&2024-11-05) over both--mcp-stdio(kubepilot-serverandkubectl why-slow) and Streamable HTTP (GET/POST /mcp). - Exposes 6 deterministic read-only tools (
kubepilot_diagnose,kubepilot_list_incidents,kubepilot_get_incident,kubepilot_audit_security,kubepilot_synthesize_gitops_pr,kubepilot_simulate_what_if), 2 resources, and 1 anti-hallucination grounded prompt (explain-incident), all annotated withreadOnlyHint: trueanddestructiveHint: false(docs/mcp-server.md).
2. Production GPU & vLLM Serving Diagnostics (internal/gpudiag) + Streaming TTFT / TPOT
vllm_kv_cache_saturation: Correlatesvllm:gpu_cache_usage_perc(>= 90%),vllm:num_requests_waiting, andvllm:num_preemptions_totalwith streamingTTFTspikes, synthesizing Kustomize GitOps patches (--enable-chunked-prefill).gpu_throttling_or_xid: Inspects NVIDIAdcgm-exporterDCGM_FI_DEV_CLOCK_THROTTLE_REASONS(masking benign0x01 GpuIdle&0x02 AppClocksstates to eliminate false positives),DCGM_FI_DEV_GPU_TEMP, and critical hardwareDCGM_FI_DEV_XID_ERRORS(XID 31, 48, 79, ...).- OTel GenAI Streaming Decomposition (
internal/genai): ExtractsTimeToFirstTokenMs(TTFT) andTimePerOutputTokenMs(TPOT) fromgen_ai.server.*attributes and first-chunk streaming span timestamps without deserializing generated text payloads. - Preserves the frozen
p2-v1internal/rulesGit tree hash (201576af596e12588aa27aa2e3586dd576af5fd8) bit-for-bit (24/24Top-1 held-out accuracy,0/21false positives).
3. Crash-Safe Persistence (--store-path), PSS-Restricted Helm PVC & Terraform IaC
- Zero-CGO Atomic JSONL Store (
internal/server/persistence.go): Persists bounded incident records via temp-file write +fsync+ atomicos.Rename(0600) and resumes auto-numberedinc-NNNNsequences seamlessly across pod restarts. - Helm Chart
0.3.0(charts/kubepilot): OptionalPersistentVolumeClaim(persistence.enabled=true) withfsGroup: 65532andseccompProfile: RuntimeDefault. - Terraform Module (
deploy/terraform) & GitOps PR Synthesis (/api/v1/incidents/{id}/gitops-pr): Declaratively provisionsPSS-Restrictednamespaces,ResourceQuota/LimitRange, Zero-TrustNetworkPolicy, and the KubePilot Helm release (validated in GitHub Actions CI).
📦 Quick Install
# Container Image (GHCR):
docker pull ghcr.io/iyedm/kubepilot:0.3.0
# Helm Chart:
helm upgrade --install kubepilot ./charts/kubepilot --namespace kubepilot-system --create-namespace
# Terraform IaC:
terraform -chdir=deploy/terraform init && terraform -chdir=deploy/terraform applyKubePilot v0.2.1
Deterministic, strictly read-only Kubernetes root-cause diagnosis for slow or failing GenAI workloads (24/24 = 100% held-out test recall, 0/21 false positives).