| 用法 | kubectl describe pod web-1 / describe node node-1 |
|---|---|
| 关键区块 | Conditions 状态条件、Volumes 挂载、Events 事件流 |
| 进度信息 | ContainerCreating 卡住原因、拉镜像错误、探针失败记录 |
| 节点视角 | describe node 看资源分配与污点,判断是否可调度 |
使用示例
使用示例
kubectl describe pod web-1 -n dev | tail -30
kubectl describe node node-1 | grep -A5 "Allocated resources"
kubectl describe svc web | grep -E "Endpoints|Selector"事件有保留窗口(默认约 1 小时):忙时要尽快抓,过期后 describe 就不再显示。