1 개요[ | ]
- k8s event & json_lines
Console
Copy
$ kubectl get event nginx.184c3b8383baa3d2
LAST SEEN TYPE REASON OBJECT MESSAGE
6m47s Normal Pulling pod/nginx Pulling image "nginx"
Console
Copy
$ kubectl get event nginx.184c3b8383baa3d2 -owide
LAST SEEN TYPE REASON OBJECT SUBOBJECT SOURCE MESSAGE FIRST SEEN COUNT NAME
6m57s Normal Pulling pod/nginx spec.containers{nginx} kubelet, cluster1-worker6-2db8977f-bplm Pulling image "nginx" 6m57s 1 nginx.184c3b8383baa3d2
Console
Copy
$ kubectl get event nginx.184c3b8383baa3d2 -oyaml
apiVersion: v1
count: 1
eventTime: null
firstTimestamp: "2025-06-25T08:23:11Z"
involvedObject:
apiVersion: v1
fieldPath: spec.containers{nginx}
kind: Pod
name: nginx
namespace: default
resourceVersion: "1236546126"
uid: 0f1720a3-c409-4ce3-84d6-9c82b82365fc
kind: Event
lastTimestamp: "2025-06-25T08:23:11Z"
message: Pulling image "nginx"
metadata:
creationTimestamp: "2025-06-25T08:23:11Z"
name: nginx.184c3b8383baa3d2
namespace: default
resourceVersion: "5982148"
uid: d474e7ab-e415-425b-892f-a33d055b9386
reason: Pulling
reportingComponent: kubelet
reportingInstance: cluster1-worker6-2db8977f-bplm
source:
component: kubelet
host: cluster1-worker6-2db8977f-bplm
type: Normal
json
Copy
{
"date": 1750839791.0,
"kind": "Event",
"apiVersion": "v1",
"metadata": {
"name": "nginx.184c3b8383baa3d2",
"namespace": "default",
"uid": "d474e7ab-e415-425b-892f-a33d055b9386",
"resourceVersion": "5982148",
"creationTimestamp": "2025-06-25T08:23:11Z",
"managedFields": [
{
"manager": "kubelet",
"operation": "Update",
"apiVersion": "v1",
"time": "2025-06-25T08:23:11Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:count": {},
"f:firstTimestamp": {},
"f:involvedObject": {},
"f:lastTimestamp": {},
"f:message": {},
"f:reason": {},
"f:reportingComponent": {},
"f:reportingInstance": {},
"f:source": {
"f:component": {},
"f:host": {}
},
"f:type": {}
}
}
]
},
"involvedObject": {
"kind": "Pod",
"namespace": "default",
"name": "nginx",
"uid": "0f1720a3-c409-4ce3-84d6-9c82b82365fc",
"apiVersion": "v1",
"resourceVersion": "1236546126",
"fieldPath": "spec.containers{nginx}"
},
"reason": "Pulling",
"message": "Pulling image \"nginx\"",
"source": {
"component": "kubelet",
"host": "cluster1-worker6-2db8977f-bplm"
},
"firstTimestamp": "2025-06-25T08:23:11Z",
"lastTimestamp": "2025-06-25T08:23:11Z",
"count": 1,
"type": "Normal",
"eventTime": null,
"reportingComponent": "kubelet",
"reportingInstance": "cluster1-worker6-2db8977f-bplm"
}
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.