---
name: php186-skill-77245
description: "使用 kubectl 和 Kubernetes API 诊断 Kubernetes 集群中的 CrashLoopBackOff pod。通过 /api/v1/namespaces/{ns}/pods/{name}/log 端点获取 pod 事件、容器日志和资源限制。提供结构化的根本原因分析，涵盖 OOMKilled、缺失 ConfigMaps、失败的就绪探针和镜像拉取错误。"
---

# Kubernetes Crashloop 诊断运行手册

## Kubernetes Crashloop 诊断运行手册

 

Diagnoses CrashLoopBackOff pods in Kubernetes clusters using kubectl and the Kubernetes API. Fetches pod events, container logs, and resource limits via the /api/v1/namespaces/{ns}/pods/{name}/log endpoint. Provides structured root-cause analysis covering OOMKilled, missing ConfigMaps, failed liveness probes, and image pull errors.

 

## 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
