{
  "id": "uc_14548a53ba31",
  "slug": "kubernetes-crashloop-auto-diagnostician",
  "asset_type": "use_case",
  "name": "Kubernetes Pod CrashLoopBackOff & OOMKilled Root-Cause Triage",
  "tagline": "Detects restarting Kubernetes pods, pulls previous container logs (`--previous`), correlates memory limit spikes in Datadog, and proposes the manifest patc",
  "description_md": "### 1. The Workflow Bottleneck & Problem Statement\nOn-call engineers woken up at 3:00 AM waste precious minutes running repetitive `kubectl describe` and `kubectl logs` commands across clusters.\n\n### 2. Synthesized Agent Architecture & Connected Stack\n**Kubernetes Pod CrashLoopBackOff & OOMKilled Root-Cause Triage** (`kubernetes-crashloop-auto-diagnostician`) is a verified production blueprint curated from **@steipete**'s real-world implementation.\n\n- **Primary Capability:** Detects restarting Kubernetes pods, pulls previous container logs (`--previous`), correlates memory limit spikes in Datadog, and proposes the manifest patch.\n- **Connected Tool Stack:** Kubernetes MCP, Datadog MCP, PagerDuty MCP, GitHub MCP\n- **Execution Governance:** `Read-Only Discovery` → `Deterministic Policy Check` → `Ask-First Human Approval`\n- **Certified Builder Source:** [@steipete](https://github.com/Flux159/mcp-server-kubernetes)\n\n### 3. Step-by-Step Implementation Blueprint\n1. **Trigger & Data Ingestion:** Configure your agent routine to watch **Kubernetes MCP** on a scheduled cadence or event webhook. Treat all external text as untrusted data inside XML fences.\n2. **Cross-System Enrichment & Verification:** Query **Datadog MCP** to validate live capacity, account status, or code state before generating recommendations.\n3. **Human-in-the-Loop Action Staging:** Post a structured summary card to **GitHub MCP** with 1-click approve/edit controls so your team retains full oversight.\n\n### 4. Copy-Paste System Prompt & Routine Configuration\n```text\nImplement the 'Kubernetes Pod CrashLoopBackOff & OOMKilled Root-Cause Triage' workflow curated with @steipete.\n\n1. OBJECTIVE:\nDetects restarting Kubernetes pods, pulls previous container logs (`--previous`), correlates memory limit spikes in Datadog, and proposes the manifest patch.\n\n2. CONNECTED TOOL STACK:\nKubernetes MCP, Datadog MCP, PagerDuty MCP, GitHub MCP\n\n3. STEP-BY-STEP EXECUTION LOOP:\n- Step A (Ingest & Ground): Query live inputs from Kubernetes MCP and cross-reference state in Datadog MCP.\n- Step B (Analyze & Validate): Apply strict filtering rules, verify schema/policy constraints, and flag any anomalies or missing fields.\n- Step C (Stage & Report): Prepare the structured output, draft replies/tickets in GitHub MCP, and request human confirmation before executing any external send or production write.\n```\n\n### 5. Measured ROI & Production Impact\n- **Verified Outcome:** Delivers a complete root-cause diagnosis and ready-to-apply resource/config diff within 60 seconds of a page.\n- **Builder Portfolio:** [Explore all capabilities by @steipete →](/u/steipete)\n",
  "primary_category": "security-ops",
  "categories_json": "[\"security-ops\", \"use-cases\"]",
  "tags_json": "[\"kubernetes-crashloop-auto-diagnostician\", \"use-case\", \"security-ops\", \"steipete\", \"kubernetes-mcp\", \"datadog-mcp\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Kubernetes MCP\", \"Datadog MCP\", \"PagerDuty MCP\", \"GitHub MCP\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @steipete.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate inspect kubernetes-crashloop-auto-diagnostician",
  "skill_markdown": "",
  "starter_prompt": "Implement the 'Kubernetes Pod CrashLoopBackOff & OOMKilled Root-Cause Triage' workflow curated with @steipete.\n\n1. OBJECTIVE:\nDetects restarting Kubernetes pods, pulls previous container logs (`--previous`), correlates memory limit spikes in Datadog, and proposes the manifest patch.\n\n2. CONNECTED TOOL STACK:\nKubernetes MCP, Datadog MCP, PagerDuty MCP, GitHub MCP\n\n3. STEP-BY-STEP EXECUTION LOOP:\n- Step A (Ingest & Ground): Query live inputs from Kubernetes MCP and cross-reference state in Datadog MCP.\n- Step B (Analyze & Validate): Apply strict filtering rules, verify schema/policy constraints, and flag any anomalies or missing fields.\n- Step C (Stage & Report): Prepare the structured output, draft replies/tickets in GitHub MCP, and request human confirmation before executing any external send or production write.",
  "project_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "repo_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "creator_handle": "steipete",
  "creator_name": "Peter Steinberger (@steipete)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/steipete",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 240,
  "x_bookmarks": 585,
  "x_retweets": 146,
  "x_views": 3360,
  "human_upvotes": 240,
  "human_installs": 240,
  "bot_pulls": 585,
  "pulse_score": 82,
  "gravity_rank_score": 2042.5,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "use_case",
  "title": "Kubernetes Pod CrashLoopBackOff & OOMKilled Root-Cause Triage",
  "description": "Detects restarting Kubernetes pods, pulls previous container logs (`--previous`), correlates memory limit spikes in Datadog, and proposes the manifest patc",
  "category": "security-ops",
  "tags": "[\"kubernetes-crashloop-auto-diagnostician\", \"use-case\", \"security-ops\", \"steipete\", \"kubernetes-mcp\", \"datadog-mcp\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "steipete",
  "author_name": "Peter Steinberger (@steipete)",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "github_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "external_url": "https://github.com/Flux159/mcp-server-kubernetes",
  "upvotes_count": 240,
  "installs_count": 240
}