---
name: php186-skill-77395
description: "使用 kubectl 和 Kubernetes API 服务器端点诊断 Kubernetes pod 故障。通过查询 /api/v1/namespaces/{ns}/pods/{pod}/log 和 /api/v1/events 资源来分析 CrashLoopBackOff、OOMKilled 和 ImagePullBackOff 状态。"
---

# Kubernetes Pod 诊断代理

## Kubernetes Pod 诊断代理

 

Diagnoses Kubernetes pod failures using kubectl and the Kubernetes API server endpoints. Analyzes CrashLoopBackOff, OOMKilled, and ImagePullBackOff states by querying /api/v1/namespaces/{ns}/pods/{pod}/log and /api/v1/events resources.

 

## Installation

 

Use the upstream install or setup path that matches your environment:

 

- git clone https://github.com/1991513ccie-png/skills
- make
- make quick-release

 

Requirements and caveats from upstream:

 

- ##### You have a working Docker environment.
- 
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/kubernetes/kubernetes/HEAD/README.md
