# Review Cluster

> Perform a read-only health review of a Kubernetes cluster or namespace: node status, workload state, resource pressure, events, and obvious misconfigurations. Use when asked for an overall cluster or namespace health assessment.

- Skill: `hiai-gg/review-cluster` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hiai-gg/review-cluster`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hiai-gg/review-cluster/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: HiAi-gg (https://skillmd.com/u/hiai-gg)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hiai-gg/review-cluster

---


# Review Kubernetes Cluster Health

Use this skill to produce a read-only health assessment of a cluster (or a
single namespace).

## Workflow

### 1. Nodes

```bash
kubectl get nodes -o wide
kubectl describe nodes | grep -A5 -E 'Conditions:|Allocated resources:' | head -60
```

Look for: `NotReady` nodes, `MemoryPressure`/`DiskPressure`, high allocated
request/limit ratios, taints blocking workloads.

### 2. Workloads

```bash
kubectl get deploy,sts,ds -A -o wide | awk 'NR==1 || $4!=1 || $5!=$3'   # non-ready
kubectl get pods -A --field-selector=status.phase!=Running -o wide
kubectl get pods -A | grep -E 'CrashLoopBackOff|ImagePullBackOff|Pending|Error'
```

Focus on non-ready replicas and abnormal pod phases.

### 3. Events

```bash
kubectl get events -A --sort-by=.lastTimestamp | tail -40
```

Recent `Warning` events with repeated counts are the highest-signal items.

### 4. Resource pressure

```bash
kubectl top nodes
kubectl top pods -A | sort -k3 -h | tail -20   # CPU
kubectl top pods -A | sort -k4 -h | tail -20   # memory
```

(Requires metrics-server.) Note any pod nearing its limits.

### 5. Networking and storage

```bash
kubectl get svc,ingress -A | grep -E 'Pending|LoadBalancer'  # stuck LBs
kubectl get pvc -A | grep -v Bound                          # non-bound PVCs
```

### 6. Report

Give a scored summary: healthy/at-risk areas, the top issues with evidence
(node condition, event, top line), and recommendations ranked by impact. Keep
recommendations separated from observations.

## Guardrails

- Entirely read-only. No `kubectl drain`, `cordon`, `delete`, or `scale`.
- `kubectl top` may fail if metrics-server is absent — say so rather than
  interpreting nothing as "no load".


