比如我们Describe一个pod,就能看到这个pod对应的事件:
kubectl describe pod sc-b-68867c5dcb-sf9hn
[pod-events.png]
可以看到,从调度...apiVersion": "v1",
"fieldPath": "spec.containers{sc-b}",
"kind": "Pod",
"name": "sc-b-68867c5dcb-sf9hn...ErrImagePull",
"metadata": {
"creationTimestamp": "2021-12-04T17:02:14Z",
"name": "sc-b-68867c5dcb-sf9hn...",
"resourceVersion": "1197082",
"selfLink": "/api/v1/namespaces/default/events/sc-b-68867c5dcb-sf9hn...GitTreeState:"", BuildDate:"2021-08-19T10:00:16Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux