investigate-pod-failure

Retrieve Kubernetes pod status, logs, and events to diagnose failures.

3|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/X-McKay/kubani --skill investigate-pod-failure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate-pod-failure
Source: https://github.com/X-McKay/kubani/tree/main/kubani/skills/k8s/diagnostic/investigate-pod-failure
Command: npx skills add https://github.com/X-McKay/kubani --skill investigate-pod-failure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify the root cause of failing Kubernetes pods by automatically gathering essential diagnostic information.

Core Features & Use Cases

  • Automated Diagnostics: Collects pod status, logs, and related events.
  • Root Cause Analysis: Aids in pinpointing issues like OOMKilled, configuration errors, or application crashes.
  • Use Case: When a critical application pod in the 'production' namespace fails, this Skill can be invoked to gather all necessary data for quick troubleshooting.

Quick Start

Investigate the pod named 'backend-api-abc123' in the 'production' namespace.

Frequently Asked Questions about investigate-pod-failure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing Kubernetes pod?

Investigating failing Kubernetes pods requires retrieving their status, logs, and associated events to identify root causes. This automated diagnostic approach collects essential data to pinpoint issues like OOMKilled, configuration errors, or application crashes.

Why does my Kubernetes pod keep crashing with an OOMKilled status?

A pod returns an OOMKilled status when it exceeds allocated memory limits. Investigating the pod's status and associated events helps identify this root cause by automatically gathering the necessary diagnostic data to confirm memory exhaustion.

How do I retrieve Kubernetes events and logs to troubleshoot pod failures?

To troubleshoot pod failures, you retrieve logs and events by accessing a Kubernetes MCP server for data retrieval. This gathers the specific pod status and event information needed to perform root cause analysis.

Do I need a Kubernetes MCP server to investigate pod failures?

Yes, you need access to a Kubernetes MCP server to investigate pod failures. The MCP server is required for retrieving the pod status, logs, and event data necessary for automated diagnostics and root cause analysis.

Can I diagnose application crashes in a specific Kubernetes namespace?

Yes, you can diagnose application crashes in a specific Kubernetes namespace by invoking the investigation with the pod name and namespace. This targets the data retrieval to collect relevant logs and events for that specific context.

What is the best way to find the root cause of pod failure in Kubernetes?

The best way to find the root cause of pod failure in Kubernetes is to automatically collect pod status, logs, and related events. This approach aids in pinpointing exact issues like OOMKilled or configuration errors quickly.