观察
观察
kubectl get pod web-x -o jsonpath='{.status.containerStatuses[0].restartCount}'
kubectl get pod -w # 观察 STATUS 与 RESTARTS 列变化事件线索
事件线索
Back-off restarting failed container web-x in pod web-x_default(2f0d...)
Normal Pulled ... Container image already present on machine重启计数是累计值,是否稳定要看当前状态、最近事件与重启时间间隔。