문서 이미지

그림: Control Plane과 Worker Node의 컴포넌트 관계. Pod 안의 pause·앱 컨테이너와 Cilium 네트워크 연결을 함께 표시했다.

Pod가 Pending에 머물거나 화면에 ContainerCreating이 보이면 생성 과정이 어디까지 진행됐는지 확인해야 한다. 이 실습에서는 API 감사 로그에서 생성 요청과 노드 배정을 따라간 뒤 containerd, Linux 프로세스, Cilium endpoint를 대조해 API 객체가 노드의 실행 자원과 어떻게 이어지는지 확인했다.

📌

목적

  • 생성 요청 수락, 노드 배정, 컨테이너 실행을 각각 어떤 기록으로 확인할 수 있는지 살핀다.

환경·구성

  • Kubernetes API 감사 로그와 containerd, Linux의 프로세스·네트워크 조회, Cilium endpoint 출력을 사용했다.

수행 내용

  • Pod UID로 대상을 구분하고 auditID로 요청과 응답을 연결했다. 런타임과 노드에서 조회한 값은 별도로 대조했다.

결과

  • API의 노드 배정과 Running 상태, 런타임의 sandbox·앱 컨테이너, Cilium endpoint와 인터페이스의 대응을 확인했다. 앱의 서비스 응답은 검증 범위 밖이다.

생성 요청이 실제 실행으로 이어지는 과정

plain text
kubectl → kube-apiserver → API 리소스 저장(etcd)
                         ↓
                scheduler → 노드 배정(binding)
                         ↓
                해당 노드의 kubelet
                         ↓ CRI
                containerd → sandbox·네트워크(CNI) 준비
                         ↓
                컨테이너 생성·시작(OCI runtime)
                         ↓
                kubelet → Pod status를 API에 보고

화살표는 주요 책임의 연결이다. 실제로는 여러 구성 요소가 API의 list/watch와 로컬 상태를 이용해 비동기적으로 조정한다. API 서버가 각 작업자에게 순서대로 실행 명령을 보내는 흐름으로 읽으면 화살표의 의미가 달라진다.

API 서버

인증은 요청 주체를, 인가는 허용된 동작을 확인한다. 그 뒤 해당 요청에 적용되는 admission에서 변경·검증을 수행하고 저장한다. mutating admission과 validating admission의 역할을 구분한다.

새 Pod 응답에도 기본값과 초기 status가 있을 수 있다. 이 실습의 생성 응답에는 phase=Pending·qosClass=BestEffort가 포함돼 있다. 이후 kubelet과 관련 제어기가 상태를 갱신한다.

API 접근 제어 흐름

Scheduler와 kubelet

Scheduler는 배정 대상 Pod를 보고 노드를 필터링·평가한 뒤 binding을 요청한다. 노드 선택에는 nodeSelector 외에도 자원 요청·taint/toleration 등 여러 조건이 작용한다.

kubelet은 자기 노드의 Pod 실행을 조정하고 CRI를 통해 런타임을 호출한다. 이 과정에서 PLEG는 런타임의 Pod·컨테이너 생명주기 변화를 감지해 kubelet에 알린다.

스케줄링 프레임워크

노드에서 컨테이너와 네트워크가 준비되는 방식

CRI의 Pod sandbox 생성·시작 호출은 RunPodSandbox다. 컨테이너 자체는 별도로 CreateContainer·StartContainer를 거친다.

containerd는 CRI 요청과 이미지·sandbox·컨테이너 생명주기를 관리하고 shim/OCI runtime과 연동한다. runc는 OCI 사양을 바탕으로 Linux의 namespace·cgroup·프로세스 구성을 적용한다. runc가 계속 상주해 모든 컨테이너를 감시하는 구조는 아니다.

일반적인 Linux containerd 환경의 pause 프로세스는 Pod의 공유 격리 자원을 유지하는 데 쓰인다. Pod 안에서 네트워크는 공유한다. PID namespace 공유는 shareProcessNamespace 같은 설정의 영향을 받으며 앱 컨테이너의 mount namespace도 별개일 수 있다.

네트워크 namespace 준비, pause 시작과 CNI 실행의 상세 순서는 containerd 버전과 sandbox 구현에 따라 달라진다.

CNI는 전달받은 네트워크 namespace의 연결·주소·경로를 준비한다. bridge 플러그인의 cni0와 달리 Cilium은 IPAM·identity·endpoint를 사용한다. 세부 동작은 설정과 identity 재사용 여부에 따라 달라진다.

containerd CRI 구조 · containerd Sandbox API와 실행 흐름

서로 다른 로그에서 같은 대상을 찾는 방법

공통 감사 정책·API Server 수집 설정·auditID와 UID 연결 방법은 아래 문서에서 관리한다.

Kubernetes audit 실습 공통 설정: 정책·UID·요청 추적

관측 자료마다 확인할 수 있는 범위가 다르다. API 감사 로그를 보면 누가 어떤 리소스를 읽고 바꿨는지 알 수 있다. 런타임에서는 sandbox와 앱 컨테이너를 조회하고 노드에서는 /proc와 네트워크를 조회해 실제 프로세스와 격리 자원을 확인한다. 한 종류의 로그로 모든 단계를 직접 봤다고 해석하지 않는다.

연결 기준이 자료에서 확인하는 것
Pod UID이름이 같은 Pod가 다시 만들어져도 서로 다른 객체로 구분한다.
auditID같은 API 요청의 RequestReceived와 ResponseComplete를 짝짓는다.
container ID와 sandbox ID앱 컨테이너와 Pod sandbox를 구분하고 런타임 조회에 연결한다.
PID·namespace inode·인터페이스 번호노드 프로세스와 격리 자원, veth의 대응을 확인한다.
Cilium endpoint ID·identity네트워크 endpoint와 정책 식별자를 대조한다. 둘은 서로 다른 식별자다.

주요 생성 응답의 Pod UID는 fac82138-48a9-40bf-88f3-61ef0462b05c다. 05:04 구간의 생성 응답·binding·status 갱신은 이 대상을 중심으로 읽는다. 반면 03:24의 생성 요청, 다른 UID를 가진 test1 조회, test-pod2의 watch 화면은 별도 자료다.

감사 로그의 kind=Event와 Kubernetes의 Event 리소스도 구분해야 한다. 예를 들어 verb=create, objectRef.resource=events인 감사 이벤트는 kubelet이나 스케줄러가 Scheduled·Pulling 같은 Event 리소스를 생성한 API 요청이다. 그 메시지는 유용한 단서지만 런타임 내부 호출이나 커널 syscall을 직접 기록한 것과 같지는 않다.

감사 로그에서 생성 요청과 상태 변화를 따라가기

1. 요청 수락과 기본값

03:24의 RequestReceived와 05:04의 ResponseComplete는 auditID가 달라 별개의 요청이다. LimitRange list도 이 출력에서 관찰된 API 조회 중 하나다.

05:04 생성 응답은 UID fac82138-48a9-40bf-88f3-61ef0462b05c, HTTP 201, phase=Pending이다. 요청의 imagePullPolicy=IfNotPresent가 응답에서 Always로 바뀌었다. admission이나 정책의 영향을 확인할 단서지만 이 출력만으로 어떤 플러그인이 바꿨는지는 단정할 수 없다.

pod-security의 restricted 위반 메모는 audit annotation에 남아 있다. 적용 정책은 baseline으로 기록돼 있다. 경고 문구만 보고 생성이 거절됐다고 읽지 않는다.

생성 요청 수신 (03:24 구간)
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "54e16ce3-8e66-4b0b-8e91-b6202b18c09e",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/pods?fieldManager=kubectl-run",
	"verb": "create",
	"user": {
		"username": "kubernetes-admin",
		"groups": [
			"kubeadm:cluster-admins",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubectl/v1.30.12 (linux/amd64) kubernetes/66f4b3f",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"apiVersion": "v1"
	},
	"requestReceivedTimestamp": "2026-04-10T03:24:18.817118Z",
	"stageTimestamp": "2026-04-10T03:24:18.817118Z"
}
LimitRange 조회 원본
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "f5b0da80-0fef-430a-a275-00a27ded5a95",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/limitranges",
	"verb": "list",
	"user": {
		"username": "system:apiserver",
		"uid": "b10243ad-e888-4736-b721-d0f6b92cbb13",
		"groups": [
			"system:authenticated",
			"system:masters"
		]
	},
	"sourceIPs": [
		"192.0.2.2"
	],
	"userAgent": "kube-apiserver/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "limitranges",
		"namespace": "default",
		"apiVersion": "v1"
	},
	"requestReceivedTimestamp": "2026-04-10T03:24:18.834693Z",
	"stageTimestamp": "2026-04-10T03:24:18.834693Z"
}
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "f5b0da80-0fef-430a-a275-00a27ded5a95",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/limitranges",
	"verb": "list",
	"user": {
		"username": "system:apiserver",
		"uid": "b10243ad-e888-4736-b721-d0f6b92cbb13",
		"groups": [
			"system:authenticated",
			"system:masters"
		]
	},
	"sourceIPs": [
		"192.0.2.2"
	],
	"userAgent": "kube-apiserver/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "limitranges",
		"namespace": "default",
		"apiVersion": "v1"
	},
	"responseStatus": {
		"metadata": {},
		"code": 200
	},
	"responseObject": {
		"kind": "LimitRangeList",
		"apiVersion": "v1",
		"metadata": {
			"resourceVersion": "5631833"
		},
		"items": []
	},
	"requestReceivedTimestamp": "2026-04-10T03:24:18.834693Z",
	"stageTimestamp": "2026-04-10T03:24:18.841588Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": ""
	}
}
생성 응답 (05:04 구간)
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "f7803fe8-00dc-4bb3-8831-ce3b4d840f4b",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/pods?fieldManager=kubectl-run",
	"verb": "create",
	"user": {
		"username": "kubernetes-admin",
		"groups": [
			"kubeadm:cluster-admins",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubectl/v1.30.12 (linux/amd64) kubernetes/66f4b3f",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1"
	},
	"responseStatus": {
		"metadata": {},
		"code": 201
	},
	"requestObject": {
		"kind": "Pod",
		"apiVersion": "v1",
		"metadata": {
			"name": "test-pod",
			"creationTimestamp": null,
			"labels": {
				"run": "test-pod"
			}
		},
		"spec": {
			"containers": [
				{
					"name": "test-pod",
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"args": [
						"sleep",
						"100000"
					],
					"resources": {},
					"terminationMessagePath": "/dev/termination-log",
					"terminationMessagePolicy": "File",
					"imagePullPolicy": "IfNotPresent"
				}
			],
			"restartPolicy": "Always",
			"terminationGracePeriodSeconds": 30,
			"dnsPolicy": "ClusterFirst",
			"securityContext": {},
			"schedulerName": "default-scheduler",
			"enableServiceLinks": true
		},
		"status": {}
	},
	"responseObject": {
		"kind": "Pod",
		"apiVersion": "v1",
		"metadata": {
			"name": "test-pod",
			"namespace": "default",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"resourceVersion": "5658930",
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"labels": {
				"run": "test-pod"
			},
			"managedFields": [
				{
					"manager": "kubectl-run",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:metadata": {
							"f:labels": {
								".": {},
								"f:run": {}
							}
						},
						"f:spec": {
							"f:containers": {
								"k:{\"name\":\"test-pod\"}": {
									".": {},
									"f:args": {},
									"f:image": {},
									"f:imagePullPolicy": {},
									"f:name": {},
									"f:resources": {},
									"f:terminationMessagePath": {},
									"f:terminationMessagePolicy": {}
								}
							},
							"f:dnsPolicy": {},
							"f:enableServiceLinks": {},
							"f:restartPolicy": {},
							"f:schedulerName": {},
							"f:securityContext": {},
							"f:terminationGracePeriodSeconds": {}
						}
					}
				}
			]
		},
		"spec": {
			"volumes": [
				{
					"name": "kube-api-access-qfzpc",
					"projected": {
						"sources": [
							{
								"serviceAccountToken": {
									"expirationSeconds": 3607,
									"path": "token"
								}
							},
							{
								"configMap": {
									"name": "kube-root-ca.crt",
									"items": [
										{
											"key": "ca.crt",
											"path": "ca.crt"
										}
									]
								}
							},
							{
								"downwardAPI": {
									"items": [
										{
											"path": "namespace",
											"fieldRef": {
												"apiVersion": "v1",
												"fieldPath": "metadata.namespace"
											}
										}
									]
								}
							}
						],
						"defaultMode": 420
					}
				}
			],
			"containers": [
				{
					"name": "test-pod",
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"args": [
						"sleep",
						"100000"
					],
					"resources": {},
					"volumeMounts": [
						{
							"name": "kube-api-access-qfzpc",
							"readOnly": true,
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
						}
					],
					"terminationMessagePath": "/dev/termination-log",
					"terminationMessagePolicy": "File",
					"imagePullPolicy": "Always"
				}
			],
			"restartPolicy": "Always",
			"terminationGracePeriodSeconds": 30,
			"dnsPolicy": "ClusterFirst",
			"serviceAccountName": "default",
			"serviceAccount": "default",
			"securityContext": {},
			"schedulerName": "default-scheduler",
			"tolerations": [
				{
					"key": "node.kubernetes.io/not-ready",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				},
				{
					"key": "node.kubernetes.io/unreachable",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				}
			],
			"priority": 0,
			"enableServiceLinks": true,
			"preemptionPolicy": "PreemptLowerPriority"
		},
		"status": {
			"phase": "Pending",
			"qosClass": "BestEffort"
		}
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.467752Z",
	"stageTimestamp": "2026-04-10T05:04:49.480746Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\"",
		"pod-security.kubernetes.io/audit-violations": "would violate PodSecurity \"restricted:v1.31\": allowPrivilegeEscalation != false (container \"test-pod\" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container \"test-pod\" must set securityContext.capabilities.drop=[\"ALL\"]), runAsNonRoot != true (pod or container \"test-pod\" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container \"test-pod\" must set securityContext.seccompProfile.type to \"RuntimeDefault\" or \"Localhost\")",
		"pod-security.kubernetes.io/enforce-policy": "baseline:v1.31"
	}
}

2. 노드 배정과 kubelet의 첫 상태 보고

binding 요청의 target.name은 master-2이고 응답은 201이다. 이어지는 Pod GET에는 spec.nodeName=master-2와 PodScheduled=True가 보인다. binding은 권한이 필요한 API subresource다. 권한을 가진 클라이언트가 이 subresource에 binding 요청을 보낼 수 있다.

노드 배정 뒤 kubelet이 보낸 첫 status PATCH에서 phase는 여전히 Pending이었다. 컨테이너의 waiting.reason에는 ContainerCreating이 기록됐다. 화면에서 ContainerCreating으로 보이는 것은 이 컨테이너의 대기 사유다.

Scheduler binding 요청·응답
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "8b741048-0653-4722-91a0-bf590ee60c18",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod/binding",
	"verb": "create",
	"user": {
		"username": "system:kube-scheduler",
		"groups": [
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kube-scheduler/v1.31.13 (linux/amd64) kubernetes/c601ba4/scheduler",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1",
		"subresource": "binding"
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.482974Z",
	"stageTimestamp": "2026-04-10T05:04:49.482974Z"
}

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "8b741048-0653-4722-91a0-bf590ee60c18",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod/binding",
	"verb": "create",
	"user": {
		"username": "system:kube-scheduler",
		"groups": [
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kube-scheduler/v1.31.13 (linux/amd64) kubernetes/c601ba4/scheduler",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"subresource": "binding"
	},
	"responseStatus": {
		"metadata": {},
		"status": "Success",
		"code": 201
	},
	"requestObject": {
		"kind": "Binding",
		"apiVersion": "v1",
		"metadata": {
			"name": "test-pod",
			"namespace": "default",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"creationTimestamp": null
		},
		"target": {
			"kind": "Node",
			"name": "master-2"
		}
	},
	"responseObject": {
		"kind": "Status",
		"apiVersion": "v1",
		"metadata": {},
		"status": "Success",
		"code": 201
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.482974Z",
	"stageTimestamp": "2026-04-10T05:04:49.490018Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"system:kube-scheduler\" of ClusterRole \"system:kube-scheduler\" to User \"system:kube-scheduler\""
	}
}
Scheduled Event
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "cf852836-ed04-4644-8d45-8cb22119e7b0",
	"stage": "ResponseComplete",
	"requestURI": "/apis/events.k8s.io/v1/namespaces/default/events",
	"verb": "create",
	"user": {
		"username": "system:kube-scheduler",
		"groups": [
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kube-scheduler/v1.31.13 (linux/amd64) kubernetes/c601ba4/scheduler",
	"objectRef": {
		"resource": "events",
		"namespace": "default",
		"name": "test-pod.18a4e6687a203a1d",
		"apiGroup": "events.k8s.io",
		"apiVersion": "v1"
	},
	"responseStatus": {
		"metadata": {},
		"code": 201
	},
	"requestObject": {
		"kind": "Event",
		"apiVersion": "events.k8s.io/v1",
		"metadata": {
			"name": "test-po.18a4e6687a203a1d",
			"namespace": "default",
			"creationTimestamp": null
		},
		"eventTime": "2026-04-10T05:04:49.490729Z",
		"reportingController": "default-scheduler",
		"reportingInstance": "default-scheduler-master-1",
		"action": "Binding",
		"reason": "Scheduled",
		"regarding": {
			"kind": "Pod",
			"namespace": "default",
			"name": "test-pod",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"apiVersion": "v1",
			"resourceVersion": "5658930"
		},
		"note": "Successfully assigned default/test-pod to master-2",
		"type": "Normal",
		"deprecatedSource": {},
		"deprecatedFirstTimestamp": null,
		"deprecatedLastTimestamp": null
	},
	"responseObject": {
		"kind": "Event",
		"apiVersion": "events.k8s.io/v1",
		"metadata": {
			"name": "test-pod.18a4e6687a203a1d",
			"namespace": "default",
			"uid": "aabbb19f-6f93-40c6-be1e-43febb862621",
			"resourceVersion": "5658932",
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"managedFields": [
				{
					"manager": "kube-scheduler",
					"operation": "Update",
					"apiVersion": "events.k8s.io/v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:action": {},
						"f:eventTime": {},
						"f:note": {},
						"f:reason": {},
						"f:regarding": {},
						"f:reportingController": {},
						"f:reportingInstance": {},
						"f:type": {}
					}
				}
			]
		},
		"eventTime": "2026-04-10T05:04:49.490729Z",
		"reportingController": "default-scheduler",
		"reportingInstance": "default-scheduler-master-1",
		"action": "Binding",
		"reason": "Scheduled",
		"regarding": {
			"kind": "Pod",
			"namespace": "default",
			"name": "test-pod",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"apiVersion": "v1",
			"resourceVersion": "5658930"
		},
		"note": "Successfully assigned default/test-pod to master-2",
		"type": "Normal",
		"deprecatedSource": {},
		"deprecatedFirstTimestamp": null,
		"deprecatedLastTimestamp": null
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.491143Z",
	"stageTimestamp": "2026-04-10T05:04:49.502223Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"system:kube-scheduler\" of ClusterRole \"system:kube-scheduler\" to User \"system:kube-scheduler\""
	}
}
kubelet의 배정된 Pod 조회
plain text
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "589b7e5c-3ca2-436e-91cc-e607e18d012b",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod",
	"verb": "get",
	"user": {
		"username": "system:node:master-2",
		"groups": [
			"system:nodes",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1"
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.492633Z",
	"stageTimestamp": "2026-04-10T05:04:49.492633Z"
}

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "589b7e5c-3ca2-436e-91cc-e607e18d012b",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod",
	"verb": "get",
	"user": {
		"username": "system:node:master-2",
		"groups": [
			"system:nodes",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1"
	},
	"responseStatus": {
		"metadata": {},
		"code": 200
	},
	"responseObject": {
		"kind": "Pod",
		"apiVersion": "v1",
		"metadata": {
			"name": "test-pod",
			"namespace": "default",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"resourceVersion": "5658931",
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"labels": {
				"run": "test-pod"
			},
			"managedFields": [
				{
					"manager": "kubectl-run",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:metadata": {
							"f:labels": {
								".": {},
								"f:run": {}
							}
						},
						"f:spec": {
							"f:containers": {
								"k:{\"name\":\"test-pod\"}": {
									".": {},
									"f:args": {},
									"f:image": {},
									"f:imagePullPolicy": {},
									"f:name": {},
									"f:resources": {},
									"f:terminationMessagePath": {},
									"f:terminationMessagePolicy": {}
								}
							},
							"f:dnsPolicy": {},
							"f:enableServiceLinks": {},
							"f:restartPolicy": {},
							"f:schedulerName": {},
							"f:securityContext": {},
							"f:terminationGracePeriodSeconds": {}
						}
					}
				}
			]
		},
		"spec": {
			"volumes": [
				{
					"name": "kube-api-access-qfzpc",
					"projected": {
						"sources": [
							{
								"serviceAccountToken": {
									"expirationSeconds": 3607,
									"path": "token"
								}
							},
							{
								"configMap": {
									"name": "kube-root-ca.crt",
									"items": [
										{
											"key": "ca.crt",
											"path": "ca.crt"
										}
									]
								}
							},
							{
								"downwardAPI": {
									"items": [
										{
											"path": "namespace",
											"fieldRef": {
												"apiVersion": "v1",
												"fieldPath": "metadata.namespace"
											}
										}
									]
								}
							}
						],
						"defaultMode": 420
					}
				}
			],
			"containers": [
				{
					"name": "test-pod",
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"args": [
						"sleep",
						"100000"
					],
					"resources": {},
					"volumeMounts": [
						{
							"name": "kube-api-access-qfzpc",
							"readOnly": true,
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
						}
					],
					"terminationMessagePath": "/dev/termination-log",
					"terminationMessagePolicy": "File",
					"imagePullPolicy": "Always"
				}
			],
			"restartPolicy": "Always",
			"terminationGracePeriodSeconds": 30,
			"dnsPolicy": "ClusterFirst",
			"serviceAccountName": "default",
			"serviceAccount": "default",
			"nodeName": "master-2",
			"securityContext": {},
			"schedulerName": "default-scheduler",
			"tolerations": [
				{
					"key": "node.kubernetes.io/not-ready",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				},
				{
					"key": "node.kubernetes.io/unreachable",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				}
			],
			"priority": 0,
			"enableServiceLinks": true,
			"preemptionPolicy": "PreemptLowerPriority"
		},
		"status": {
			"phase": "Pending",
			"conditions": [
				{
					"type": "PodScheduled",
					"status": "True",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:49Z"
				}
			],
			"qosClass": "BestEffort"
		}
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.492633Z",
	"stageTimestamp": "2026-04-10T05:04:49.496721Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": ""
	}
}

\
초기 status PATCH
plain text
// 현재 상태 업데이트
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "4781d579-84cb-4328-be30-d03d15b1b988",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod/status",
	"verb": "patch",
	"user": {
		"username": "system:node:master-2",
		"groups": [
			"system:nodes",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1",
		"subresource": "status"
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.498132Z",
	"stageTimestamp": "2026-04-10T05:04:49.498132Z"
}

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "4781d579-84cb-4328-be30-d03d15b1b988",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/pods/test-pod/status",
	"verb": "patch",
	"user": {
		"username": "system:node:master-2",
		"groups": [
			"system:nodes",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test-pod",
		"apiVersion": "v1",
		"subresource": "status"
	},
	"responseStatus": {
		"metadata": {},
		"code": 200
	},
	"requestObject": {
		"metadata": {
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c"
		},
		"status": {
			"$setElementOrder/conditions": [
				{
					"type": "PodReadyToStartContainers"
				},
				{
					"type": "Initialized"
				},
				{
					"type": "Ready"
				},
				{
					"type": "ContainersReady"
				},
				{
					"type": "PodScheduled"
				}
			],
			"conditions": [
				{
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"status": "False",
					"type": "PodReadyToStartContainers"
				},
				{
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"status": "True",
					"type": "Initialized"
				},
				{
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"message": "containers with unready status: [test-pod]",
					"reason": "ContainersNotReady",
					"status": "False",
					"type": "Ready"
				},
				{
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"message": "containers with unready status: [test-pod]",
					"reason": "ContainersNotReady",
					"status": "False",
					"type": "ContainersReady"
				}
			],
			"containerStatuses": [
				{
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"imageID": "",
					"lastState": {},
					"name": "test-pod",
					"ready": false,
					"restartCount": 0,
					"started": false,
					"state": {
						"waiting": {
							"reason": "ContainerCreating"
						}
					},
					"volumeMounts": [
						{
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
							"name": "kube-api-access-qfzpc",
							"readOnly": true,
							"recursiveReadOnly": "Disabled"
						}
					]
				}
			],
			"hostIP": "192.0.2.3",
			"hostIPs": [
				{
					"ip": "192.0.2.3"
				}
			],
			"startTime": "2026-04-10T05:04:53Z"
		}
	},
	"responseObject": {
		"kind": "Pod",
		"apiVersion": "v1",
		"metadata": {
			"name": "test-pod",
			"namespace": "default",
			"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
			"resourceVersion": "5658933",
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"labels": {
				"run": "test-pod"
			},
			"managedFields": [
				{
					"manager": "kubectl-run",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:metadata": {
							"f:labels": {
								".": {},
								"f:run": {}
							}
						},
						"f:spec": {
							"f:containers": {
								"k:{\"name\":\"test-pod\"}": {
									".": {},
									"f:args": {},
									"f:image": {},
									"f:imagePullPolicy": {},
									"f:name": {},
									"f:resources": {},
									"f:terminationMessagePath": {},
									"f:terminationMessagePolicy": {}
								}
							},
							"f:dnsPolicy": {},
							"f:enableServiceLinks": {},
							"f:restartPolicy": {},
							"f:schedulerName": {},
							"f:securityContext": {},
							"f:terminationGracePeriodSeconds": {}
						}
					}
				},
				{
					"manager": "kubelet",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:status": {
							"f:conditions": {
								"k:{\"type\":\"ContainersReady\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:message": {},
									"f:reason": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"Initialized\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"PodReadyToStartContainers\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"Ready\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:message": {},
									"f:reason": {},
									"f:status": {},
									"f:type": {}
								}
							},
							"f:containerStatuses": {},
							"f:hostIP": {},
							"f:hostIPs": {},
							"f:startTime": {}
						}
					},
					"subresource": "status"
				}
			]
		},
		"spec": {
			"volumes": [
				{
					"name": "kube-api-access-qfzpc",
					"projected": {
						"sources": [
							{
								"serviceAccountToken": {
									"expirationSeconds": 3607,
									"path": "token"
								}
							},
							{
								"configMap": {
									"name": "kube-root-ca.crt",
									"items": [
										{
											"key": "ca.crt",
											"path": "ca.crt"
										}
									]
								}
							},
							{
								"downwardAPI": {
									"items": [
										{
											"path": "namespace",
											"fieldRef": {
												"apiVersion": "v1",
												"fieldPath": "metadata.namespace"
											}
										}
									]
								}
							}
						],
						"defaultMode": 420
					}
				}
			],
			"containers": [
				{
					"name": "test-pod",
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"args": [
						"sleep",
						"100000"
					],
					"resources": {},
					"volumeMounts": [
						{
							"name": "kube-api-access-qfzpc",
							"readOnly": true,
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
						}
					],
					"terminationMessagePath": "/dev/termination-log",
					"terminationMessagePolicy": "File",
					"imagePullPolicy": "Always"
				}
			],
			"restartPolicy": "Always",
			"terminationGracePeriodSeconds": 30,
			"dnsPolicy": "ClusterFirst",
			"serviceAccountName": "default",
			"serviceAccount": "default",
			"nodeName": "master-2",
			"securityContext": {},
			"schedulerName": "default-scheduler",
			"tolerations": [
				{
					"key": "node.kubernetes.io/not-ready",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				},
				{
					"key": "node.kubernetes.io/unreachable",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				}
			],
			"priority": 0,
			"enableServiceLinks": true,
			"preemptionPolicy": "PreemptLowerPriority"
		},
		"status": {
			"phase": "Pending",
			"conditions": [
				{
					"type": "PodReadyToStartContainers",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z"
				},
				{
					"type": "Initialized",
					"status": "True",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z"
				},
				{
					"type": "Ready",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"reason": "ContainersNotReady",
					"message": "containers with unready status: [test-pod]"
				},
				{
					"type": "ContainersReady",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:53Z",
					"reason": "ContainersNotReady",
					"message": "containers with unready status: [test-pod]"
				},
				{
					"type": "PodScheduled",
					"status": "True",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T05:04:49Z"
				}
			],
			"hostIP": "192.0.2.3",
			"hostIPs": [
				{
					"ip": "192.0.2.3"
				}
			],
			"startTime": "2026-04-10T05:04:53Z",
			"containerStatuses": [
				{
					"name": "test-pod",
					"state": {
						"waiting": {
							"reason": "ContainerCreating"
						}
					},
					"lastState": {},
					"ready": false,
					"restartCount": 0,
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"imageID": "",
					"started": false,
					"volumeMounts": [
						{
							"name": "kube-api-access-qfzpc",
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
							"readOnly": true,
							"recursiveReadOnly": "Disabled"
						}
					]
				}
			],
			"qosClass": "BestEffort"
		}
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.498132Z",
	"stageTimestamp": "2026-04-10T05:04:49.504751Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": ""
	}
}

3. ServiceAccount 토큰 요청과 Cilium endpoint 생성

실행 준비 중에는 앱 컨테이너를 만드는 호출 외에도 ServiceAccount 토큰을 요청하는 API 호출이 나타난다. TokenRequest의 boundObjectRef는 토큰이 연결된 Pod를 확인하는 단서다. user.extra의 Pod·Node 필드는 인증 메커니즘이 부가한 인증 주체 정보다. 이 필드와 요청 대상 Pod를 구분해서 읽는다. 토큰 원문은 동작을 설명하는 데 필요하지 않아 싣지 않는다.

Cilium 쪽에서는 identity 4639가 생성된다. test-pod의 CiliumEndpoint 조회 요청은 한 번 404 응답을 받았고 이후 생성 요청이 이어진다. 아직 생성되지 않은 endpoint를 먼저 조회한 시점일 수 있으므로 이 404만으로 최종 네트워크 실패라고 결론내리지 않는다. 이후 endpoint의 준비 상태와 Pod IP·인터페이스의 대응까지 확인해야 한다.

CiliumEndpoint 생성 이벤트의 JSON 일부는 구문이 불완전하다. 확인 가능한 endpoint ID 354, identity 4639와 IP를 뒤의 endpoint 조회 결과에 연결해 살펴본다.

TokenRequest 감사 이벤트
plain text

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "2446eede-6e99-4bcd-ba17-6e6b9210290e",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/serviceaccounts/default/token",
	"verb": "create",
	"user": {
		"username": "system:node:master-2",
		"groups": [
			"system:nodes",
			"system:authenticated"
		]
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
	"objectRef": {
		"resource": "serviceaccounts",
		"namespace": "default",
		"name": "default",
		"apiVersion": "v1",
		"subresource": "token"
	},
	"responseStatus": {
		"metadata": {},
		"code": 201
	},
	"requestObject": {
		"kind": "TokenRequest",
		"apiVersion": "authentication.k8s.io/v1",
		"metadata": {
			"creationTimestamp": null
		},
		"spec": {
			"audiences": null,
			"expirationSeconds": 3607,
			"boundObjectRef": {
				"kind": "Pod",
				"apiVersion": "v1",
				"name": "test-pod",
				"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c"
			}
		},
		"status": {
			"token": "",
			"expirationTimestamp": null
		}
	},
	"responseObject": {
		"kind": "TokenRequest",
		"apiVersion": "authentication.k8s.io/v1",
		"metadata": {
			"name": "default",
			"namespace": "default",
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"managedFields": [
				{
					"manager": "kubelet",
					"operation": "Update",
					"apiVersion": "authentication.k8s.io/v1",
					"time": "2026-04-10T05:04:49Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:spec": {
							"f:boundObjectRef": {
								"f:apiVersion": {},
								"f:kind": {},
								"f:name": {},
								"f:uid": {}
							},
							"f:expirationSeconds": {}
						}
					},
					"subresource": "token"
				}
			]
		},
		"spec": {
			"audiences": [
				"https://kubernetes.default.svc.cluster.local"
			],
			"expirationSeconds": 3607,
			"boundObjectRef": {
				"kind": "Pod",
				"apiVersion": "v1",
				"name": "test-pod",
				"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c"
			}
		},
		"status": {
			"token": "EXAMPLE_JWT",
			"expirationTimestamp": "2026-04-10T06:04:56Z"
		}
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.737064Z",
	"stageTimestamp": "2026-04-10T05:04:49.743855Z",
	"annotations": {
		"authentication.kubernetes.io/issued-credential-id": "JTI=EXAMPLE_CREDENTIAL_ID",
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": ""
	}
}
CiliumIdentity 생성·endpoint 조회
plain text

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "9358cd55-6372-477a-9d0c-1d2d403bd1b0",
	"stage": "ResponseComplete",
	"requestURI": "/apis/cilium.io/v2/ciliumidentities",
	"verb": "create",
	"user": {
		"username": "system:serviceaccount:cilium:cilium",
		"uid": "f0010ed3-06d7-45b4-af34-04f70240ca4c",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:cilium",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"cilium-nlx4m"
			],
			"authentication.kubernetes.io/pod-uid": [
				"04127fd0-80e9-4828-98ec-12350549fdc6"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "cilium-agent/1.18.4 afda2aa9 2025-11-12T10:14:04+00:00 go version go1.24.10 linux/amd64",
	"objectRef": {
		"resource": "ciliumidentities",
		"name": "4639",
		"apiGroup": "cilium.io",
		"apiVersion": "v2"
	},
	"responseStatus": {
		"metadata": {},
		"code": 201
	},
	"requestObject": {
		"apiVersion": "cilium.io/v2",
		"kind": "CiliumIdentity",
		"metadata": {
			"creationTimestamp": null,
			"labels": {
				"io.kubernetes.pod.namespace": "default"
			},
			"name": "4639"
		},
		"security-labels": {
			"k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name": "default",
			"k8s:io.cilium.k8s.policy.cluster": "default",
			"k8s:io.cilium.k8s.policy.serviceaccount": "default",
			"k8s:io.kubernetes.pod.namespace": "default",
			"k8s:run": "test-pod"
		}
	},
	"responseObject": {
		"apiVersion": "cilium.io/v2",
		"kind": "CiliumIdentity",
		"metadata": {
			"creationTimestamp": "2026-04-10T05:04:49Z",
			"generation": 1,
			"labels": {
				"io.kubernetes.pod.namespace": "default"
			},
			"managedFields": [
				{
					"apiVersion": "cilium.io/v2",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:metadata": {
							"f:labels": {
								".": {},
								"f:io.kubernetes.pod.namespace": {}
							}
						},
						"f:security-labels": {
							".": {},
							"f:k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name": {},
							"f:k8s:io.cilium.k8s.policy.cluster": {},
							"f:k8s:io.cilium.k8s.policy.serviceaccount": {},
							"f:k8s:io.kubernetes.pod.namespace": {},
							"f:k8s:run": {}
						}
					},
					"manager": "cilium-agent",
					"operation": "Update",
					"time": "2026-04-10T05:04:49Z"
				}
			],
			"name": "4639",
			"resourceVersion": "5658938",
			"uid": "9139de1d-8bc7-49ba-b4f0-f8e585b39927"
		},
		"security-labels": {
			"k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name": "default",
			"k8s:io.cilium.k8s.policy.cluster": "default",
			"k8s:io.cilium.k8s.policy.serviceaccount": "default",
			"k8s:io.kubernetes.pod.namespace": "default",
			"k8s:run": "test-pod"
		}
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.862145Z",
	"stageTimestamp": "2026-04-10T05:04:49.869848Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"cilium\" of ClusterRole \"cilium\" to ServiceAccount \"cilium/cilium\""
	}
}
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "1ecb8ec5-4f34-41f9-b777-fcf5d07e0d74",
	"stage": "RequestReceived",
	"requestURI": "/apis/cilium.io/v2/namespaces/default/ciliumendpoints/test-pod?resourceVersion=0",
	"verb": "get",
	"user": {
		"username": "system:serviceaccount:cilium:cilium",
		"uid": "f0010ed3-06d7-45b4-af34-04f70240ca4c",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:cilium",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"cilium-nlx4m"
			],
			"authentication.kubernetes.io/pod-uid": [
				"04127fd0-80e9-4828-98ec-12350549fdc6"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "cilium-agent/1.18.4 afda2aa9 2025-11-12T10:14:04+00:00 go version go1.24.10 linux/amd64",
	"objectRef": {
		"resource": "ciliumendpoints",
		"namespace": "default",
		"name": "test-pod",
		"apiGroup": "cilium.io",
		"apiVersion": "v2"
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.871500Z",
	"stageTimestamp": "2026-04-10T05:04:49.871500Z"
}
CiliumEndpoint 조회·생성 기록 (일부 JSON 복사 손상)
plain text

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "1ecb8ec5-4f34-41f9-b777-fcf5d07e0d74",
	"stage": "ResponseComplete",
	"requestURI": "/apis/cilium.io/v2/namespaces/default/ciliumendpoints/test-pod?resourceVersion=0",
	"verb": "get",
	"user": {
		"username": "system:serviceaccount:cilium:cilium",
		"uid": "f0010ed3-06d7-45b4-af34-04f70240ca4c",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:cilium",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"cilium-nlx4m"
			],
			"authentication.kubernetes.io/pod-uid": [
				"04127fd0-80e9-4828-98ec-12350549fdc6"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "cilium-agent/1.18.4 afda2aa9 2025-11-12T10:14:04+00:00 go version go1.24.10 linux/amd64",
	"objectRef": {
		"resource": "ciliumendpoints",
		"namespace": "default",
		"name": "test-pod",
		"apiGroup": "cilium.io",
		"apiVersion": "v2"
	},
	"responseStatus": {
		"metadata": {},
		"status": "Failure",
		"message": "ciliumendpoints.cilium.io \"test-pod\" not found",
		"reason": "NotFound",
		"details": {
			"name": "test-pod",
			"group": "cilium.io",
			"kind": "ciliumendpoints"
		},
		"code": 404
	},
	"responseObject": {
		"kind": "Status",
		"apiVersion": "v1",
		"metadata": {},
		"status": "Failure",
		"message": "ciliumendpoints.cilium.io \"test-pod\" not found",
		"reason": "NotFound",
		"details": {
			"name": "test-pod",
			"group": "cilium.io",
			"kind": "ciliumendpoints"
		},
		"code": 404
	},
	"requestReceivedTimestamp": "2026-04-10T05:04:49.871500Z",
	"stageTimestamp": "2026-04-10T05:04:49.872000Z",
	"annotations": {
		"authorization.k8s.io/decision": "allow",
		"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"cilium\" of ClusterRole \"cilium\" to ServiceAccount \"cilium/cilium\""
	}
}
{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "b77f2df8-81a7-47dc-9778-f183cd5d7f0d",
	"stage": "ResponseComplete",
	"requestURI": "/apis/cilium.io/v2/namespaces/default/ciliumendpoints",
	"verb": "create",
	"user": {
		"username": "system:serviceaccount:cilium:cilium",
		"uid": "f0010ed3-06d7-45b4-af34-04f70240ca4c",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:cilium",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"cilium-nlx4m"
			],
			"authentication.kubernetes.io/pod-uid": [
				"04127fd0-80e9-4828-98ec-12350549fdc6"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.1"
	],
	"userAgent": "cilium-agent/1.18.4 afda2aa9 2025-11-12T10:14:04+00:00 go version go1.24.10 linux/amd64",
	"objectRef": {
		"resource": "ciliumendpoints",
		"namespace": "default",
		"name": "test-pod",
		"apiGroup": "cilium.io",
		"apiVersion": "v2"
	},
	"responseStatus": {
		"metadata": {},
		"code": 201
	},
	"requestObject": {
		"apiVersion": "cilium.io/v2",
		"kind": "CiliumEndpoint",
		"metadata": {
			"creationTimestamp": null,
			"labels": {
				"run": "test-pod"
			},
			"name":test-pod","ownerReferences":[{"apiVersion":"v1","kind":"Pod","name":"test-pod","uid":"fac82138-48a9-40bf-88f3-61ef0462b05c"}]},"status":{"encryption":{},"external-identifiers":{"cni-attachment-id":"79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab:eth0","container-id":"79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab","k8s-namespace":"default","k8s-pod-name":"test-pod","pod-name":"default/test-pod"},"id":354,"identity":{"id":4639,"labels":["k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name=default","k8s:io.cilium.k8s.policy.cluster=default","k8s:io.cilium.k8s.policy.serviceaccount=default","k8s:io.kubernetes.pod.namespace=default","k8s:run=test-pod"]},"networking":{"addressing":[{"ipv4":"192.0.2.4"}],"node":"192.0.2.3"},"state":"ready"}},"responseObject":{"apiVersion":"cilium.io/v2","kind":"CiliumEndpoint","metadata":{"creationTimestamp":"2026-04-10T05: 04: 49Z","generation":1,"labels":{"run":"test-pod"},"managedFields":[{"apiVersion":"cilium.io/v2","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:run":{}},"f:ownerReferences":{".":{},"k: {\"uid\":\"fac82138-48a9-40bf-88f3-61ef0462b05c\"}": {}
			}
		},
		"f:status": {
			".": {},
			"f:encryption": {},
			"f:external-identifiers": {
				".": {},
				"f:cni-attachment-id": {},
				"f:container-id": {},
				"f:k8s-namespace": {},
				"f:k8s-pod-name": {},
				"f:pod-name": {}
			},
			"f:id": {},
			"f:identity": {
				".": {},
				"f:id": {},
				"f:labels": {}
			},
			"f:networking": {
				".": {},
				"f:addressing": {},
				"f:node": {}
			},
			"f:state": {}
		}
	},
	"manager": "cilium-agent",
	"operation": "Update",
	"time": "2026-04-10T05:04:49Z"
}
],
"name": "test-pod",
"namespace": "default",
"ownerReferences": [
{
	"apiVersion": "v1",
	"kind": "Pod",
	"name":test-pod","uid":"fac82138-48a9-40bf-88f3-61ef0462b05c"}],"resourceVersion":"5658939","uid":"ac521770-0444-4e87-a64e-e3c5ce5a7983"},"status":{"encryption":{},"external-identifiers":{"cni-attachment-id":"79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab:eth0","container-id":"79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab","k8s-namespace":"default","k8s-pod-name":"test-pod","pod-name":"default/test-pod"},"id":354,"identity":{"id":4639,"labels":["k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name=default","k8s:io.cilium.k8s.policy.cluster=default","k8s:io.cilium.k8s.policy.serviceaccount=default","k8s:io.kubernetes.pod.namespace=default","k8s:run=test-pod"]},"networking":{"addressing":[{"ipv4":"192.0.2.4"}],"node":"192.0.2.3"},"state":"ready"}},"requestReceivedTimestamp":"2026-04-10T05: 04: 49.874528Z","stageTimestamp":"2026-04-10T05: 04: 49.884666Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":"RBAC: allowed by ClusterRoleBinding \"cilium\" of ClusterRole \"cilium\" to ServiceAccount \"cilium/cilium\""
}

4. 이미지·컨테이너·Running

Pulling·Pulled·Created Event와 마지막 status PATCH에 실제 실행 결과가 남아 있다. 마지막 응답은 phase=Running, Ready=True, Pod IP=192.0.2.4다. 이미지 pull Event의 성공은 앱의 기능 검증과는 별개다. 이 실습에서는 MariaDB 이미지를 사용했다. 뒤에서 앱 컨테이너의 프로세스를 조회해 보니 실행 명령은 sleep이었다. 여기서 확인한 상태는 Running과 Ready까지다. 데이터베이스가 실제 요청을 처리했는지는 검증 범위 밖이다.

kubelet이 보고한 startedAt이 API 서버의 audit 시각보다 몇 초 앞서는 구간이 있다. 노드와 API 서버의 시계 차이가 영향을 줄 수 있다. 이 구간은 단계 순서와 상태를 비교하는 자료로 사용한다.

이미지 Pulling·Pulled Event
plain text
// Pulling 업데이트
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "5e0ac918-4466-4eb4-a84a-8f93b07304b2",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/events",
"verb": "create",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "events",
	"namespace": "default",
	"name": "test-pod.18a4e669969c44af",
	"apiVersion": "v1"
},
"responseStatus": {
	"metadata": {},
	"code": 201
},
"requestObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e669969c44af",
		"namespace": "default",
		"creationTimestamp": null
	},
	"involvedObject": {
		"kind": "Pod",
		"namespace": "default",
		"name": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Pulling",
	"message": "Pulling image \"registry.example.com:55000/demo/mariadb:11.3.2\"",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"responseObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e669969c44af",
		"namespace": "default",
		"uid": "d8135bba-cb5a-4949-a85d-a9ab0ada81c2",
		"resourceVersion": "5658940",
		"creationTimestamp": "2026-04-10T05:04:50Z",
		"managedFields": [
			{
				"manager": "kubelet",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:50Z",
				"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": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Pulling",
	"message": "Pulling image \"registry.example.com:55000/demo/mariadb:11.3.2\"",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.056754Z",
"stageTimestamp": "2026-04-10T05:04:50.070556Z",
"annotations": {
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": ""
}

// Pulled 업데이트
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "80c1a8c4-a099-4db1-9bea-3790b2df6135",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/events",
"verb": "create",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "events",
	"namespace": "default",
	"name": "test-pod.18a4e6699cdc707c",
	"apiVersion": "v1"
},
"responseStatus": {
	"metadata": {},
	"code": 201
},
"requestObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e6699cdc707c",
		"namespace": "default",
		"creationTimestamp": null
	},
	"involvedObject": {
		"kind": "Pod",
		"namespace": "default",
		"name": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Pulled",
	"message": "Successfully pulled image \"registry.example.com:55000/demo/mariadb:11.3.2\" in 104ms (104ms including waiting). Image size: 411202096 bytes.",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"responseObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e6699cdc707c",
		"namespace": "default",
		"uid": "00742d94-efc3-4232-b21b-e8c629314615",
		"resourceVersion": "5658942",
		"creationTimestamp": "2026-04-10T05:04:50Z",
		"managedFields": [
			{
				"manager": "kubelet",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:50Z",
				"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": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Pulled",
	"message": "Successfully pulled image \"registry.example.com:55000/demo/mariadb:11.3.2\" in 104ms (104ms including waiting). Image size: 411202096 bytes.",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.162158Z",
"stageTimestamp": "2026-04-10T05:04:50.167008Z",
"annotations": {
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": ""
}
컨테이너 Created Event
plain text

{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "dd44813b-3a2d-431e-97b8-3007af7a27de",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/events",
"verb": "create",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "events",
	"namespace": "default",
	"name": "test-pod.18a4e6699f86dd61",
	"apiVersion": "v1"
},
"responseStatus": {
	"metadata": {},
	"code": 201
},
"requestObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e6699f86dd61",
		"namespace": "default",
		"creationTimestamp": null
	},
	"involvedObject": {
		"kind": "Pod",
		"namespace": "default",
		"name": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Created",
	"message": "Created container: test-pod",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"responseObject": {
	"kind": "Event",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod.18a4e6699f86dd61",
		"namespace": "default",
		"uid": "de023a0b-45ad-4f84-a441-c5f2fe9d3148",
		"resourceVersion": "5658944",
		"creationTimestamp": "2026-04-10T05:04:50Z",
		"managedFields": [
			{
				"manager": "kubelet",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:50Z",
				"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": "test-pod",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"apiVersion": "v1",
		"resourceVersion": "5658931",
		"fieldPath": "spec.containers{test-pod}"
	},
	"reason": "Created",
	"message": "Created container: test-pod",
	"source": {
		"component": "kubelet",
		"host": "master-2"
	},
	"firstTimestamp": "2026-04-10T05:04:54Z",
	"lastTimestamp": "2026-04-10T05:04:54Z",
	"count": 1,
	"type": "Normal",
	"eventTime": null,
	"reportingComponent": "kubelet",
	"reportingInstance": "master-2"
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.206729Z",
"stageTimestamp": "2026-04-10T05:04:50.212779Z",
"annotations": {
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": ""
}
실행 중간 Pod 조회
plain text

{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "d9492357-af53-4aba-8cd5-dcb9b162b183",
"stage": "RequestReceived",
"requestURI": "/api/v1/namespaces/default/pods/test-pod",
"verb": "get",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "pods",
	"namespace": "default",
	"name": "test-pod",
	"apiVersion": "v1"
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.471474Z",
"stageTimestamp": "2026-04-10T05:04:50.471474Z"
}

{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "d9492357-af53-4aba-8cd5-dcb9b162b183",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/pods/test-pod",
"verb": "get",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "pods",
	"namespace": "default",
	"name": "test-pod",
	"apiVersion": "v1"
},
"responseStatus": {
	"metadata": {},
	"code": 200
},
"responseObject": {
	"kind": "Pod",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod",
		"namespace": "default",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"resourceVersion": "5658933",
		"creationTimestamp": "2026-04-10T05:04:49Z",
		"labels": {
			"run": "test-pod"
		},
		"managedFields": [
			{
				"manager": "kubectl-run",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:49Z",
				"fieldsType": "FieldsV1",
				"fieldsV1": {
					"f:metadata": {
						"f:labels": {
							".": {},
							"f:run": {}
						}
					},
					"f:spec": {
						"f:containers": {
							"k:{\"name\":\"test-pod\"}": {
								".": {},
								"f:args": {},
								"f:image": {},
								"f:imagePullPolicy": {},
								"f:name": {},
								"f:resources": {},
								"f:terminationMessagePath": {},
								"f:terminationMessagePolicy": {}
							}
						},
						"f:dnsPolicy": {},
						"f:enableServiceLinks": {},
						"f:restartPolicy": {},
						"f:schedulerName": {},
						"f:securityContext": {},
						"f:terminationGracePeriodSeconds": {}
					}
				}
			},
			{
				"manager": "kubelet",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:49Z",
				"fieldsType": "FieldsV1",
				"fieldsV1": {
					"f:status": {
						"f:conditions": {
							"k:{\"type\":\"ContainersReady\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:message": {},
								"f:reason": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"Initialized\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"PodReadyToStartContainers\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"Ready\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:message": {},
								"f:reason": {},
								"f:status": {},
								"f:type": {}
							}
						},
						"f:containerStatuses": {},
						"f:hostIP": {},
						"f:hostIPs": {},
						"f:startTime": {}
					}
				},
				"subresource": "status"
			}
		]
	},
	"spec": {
		"volumes": [
			{
				"name": "kube-api-access-qfzpc",
				"projected": {
					"sources": [
						{
							"serviceAccountToken": {
								"expirationSeconds": 3607,
								"path": "token"
							}
						},
						{
							"configMap": {
								"name": "kube-root-ca.crt",
								"items": [
									{
										"key": "ca.crt",
										"path": "ca.crt"
									}
								]
							}
						},
						{
							"downwardAPI": {
								"items": [
									{
										"path": "namespace",
										"fieldRef": {
											"apiVersion": "v1",
											"fieldPath": "metadata.namespace"
										}
									}
								]
							}
						}
					],
					"defaultMode": 420
				}
			}
		],
		"containers": [
			{
				"name": "test-pod",
				"image": "registry.example.com:55000/demo/mariadb:11.3.2",
				"args": [
					"sleep",
					"100000"
				],
				"resources": {},
				"volumeMounts": [
					{
						"name": "kube-api-access-qfzpc",
						"readOnly": true,
						"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
					}
				],
				"terminationMessagePath": "/dev/termination-log",
				"terminationMessagePolicy": "File",
				"imagePullPolicy": "Always"
			}
		],
		"restartPolicy": "Always",
		"terminationGracePeriodSeconds": 30,
		"dnsPolicy": "ClusterFirst",
		"serviceAccountName": "default",
		"serviceAccount": "default",
		"nodeName": "master-2",
		"securityContext": {},
		"schedulerName": "default-scheduler",
		"tolerations": [
			{
				"key": "node.kubernetes.io/not-ready",
				"operator": "Exists",
				"effect": "NoExecute",
				"tolerationSeconds": 120
			},
			{
				"key": "node.kubernetes.io/unreachable",
				"operator": "Exists",
				"effect": "NoExecute",
				"tolerationSeconds": 120
			}
		],
		"priority": 0,
		"enableServiceLinks": true,
		"preemptionPolicy": "PreemptLowerPriority"
	},
	"status": {
		"phase": "Pending",
		"conditions": [
			{
				"type": "PodReadyToStartContainers",
				"status": "False",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:53Z"
			},
			{
				"type": "Initialized",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:53Z"
			},
			{
				"type": "Ready",
				"status": "False",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:53Z",
				"reason": "ContainersNotReady",
				"message": "containers with unready status: [test-pod]"
			},
			{
				"type": "ContainersReady",
				"status": "False",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:53Z",
				"reason": "ContainersNotReady",
				"message": "containers with unready status: [test-pod]"
			},
			{
				"type": "PodScheduled",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:49Z"
			}
		],
		"hostIP": "192.0.2.3",
		"hostIPs": [
			{
				"ip": "192.0.2.3"
			}
		],
		"startTime": "2026-04-10T05:04:53Z",
		"containerStatuses": [
			{
				"name": "test-pod",
				"state": {
					"waiting": {
						"reason": "ContainerCreating"
					}
				},
				"lastState": {},
				"ready": false,
				"restartCount": 0,
				"image": "registry.example.com:55000/demo/mariadb:11.3.2",
				"imageID": "",
				"started": false,
				"volumeMounts": [
					{
						"name": "kube-api-access-qfzpc",
						"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
						"readOnly": true,
						"recursiveReadOnly": "Disabled"
					}
				]
			}
		],
		"qosClass": "BestEffort"
	}
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.471474Z",
"stageTimestamp": "2026-04-10T05:04:50.473913Z",
"annotations": {
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": ""
}
}
Running 상태를 보고한 최종 status PATCH
plain text
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "991d6c4b-7a3a-4b03-8796-9d99b0f3a978",
"stage": "RequestReceived",
"requestURI": "/api/v1/namespaces/default/pods/test-pod/status",
"verb": "patch",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "pods",
	"namespace": "default",
	"name": "test-pod",
	"apiVersion": "v1",
	"subresource": "status"
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.475327Z",
"stageTimestamp": "2026-04-10T05:04:50.475327Z"
}
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "991d6c4b-7a3a-4b03-8796-9d99b0f3a978",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/pods/test-pod/status",
"verb": "patch",
"user": {
	"username": "system:node:master-2",
	"groups": [
		"system:nodes",
		"system:authenticated"
	]
},
"sourceIPs": [
	"192.0.2.1"
],
"userAgent": "kubelet/v1.31.13 (linux/amd64) kubernetes/c601ba4",
"objectRef": {
	"resource": "pods",
	"namespace": "default",
	"name": "test-pod",
	"apiVersion": "v1",
	"subresource": "status"
},
"responseStatus": {
	"metadata": {},
	"code": 200
},
"requestObject": {
	"metadata": {
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c"
	},
	"status": {
		"$setElementOrder/conditions": [
			{
				"type": "PodReadyToStartContainers"
			},
			{
				"type": "Initialized"
			},
			{
				"type": "Ready"
			},
			{
				"type": "ContainersReady"
			},
			{
				"type": "PodScheduled"
			}
		],
		"conditions": [
			{
				"lastTransitionTime": "2026-04-10T05:04:54Z",
				"status": "True",
				"type": "PodReadyToStartContainers"
			},
			{
				"lastTransitionTime": "2026-04-10T05:04:54Z",
				"message": null,
				"reason": null,
				"status": "True",
				"type": "Ready"
			},
			{
				"lastTransitionTime": "2026-04-10T05:04:54Z",
				"message": null,
				"reason": null,
				"status": "True",
				"type": "ContainersReady"
			}
		],
		"containerStatuses": [
			{
				"containerID": "containerd://5dc281c8af64469bf38bcf9dc337c994b44eb35025d290ae59c8bbb0214be667",
				"image": "registry.example.com:55000/demo/mariadb:11.3.2",
				"imageID": "registry.example.com:55000/demo/mariadb@sha256:e09c77fcece9f6adc370d3707c7f5be653036c1d1bba70fe841c4bc2f2292e52",
				"lastState": {},
				"name": "test-pod",
				"ready": true,
				"restartCount": 0,
				"started": true,
				"state": {
					"running": {
						"startedAt": "2026-04-10T05:04:54Z"
					}
				},
				"volumeMounts": [
					{
						"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
						"name": "kube-api-access-qfzpc",
						"readOnly": true,
						"recursiveReadOnly": "Disabled"
					}
				]
			}
		],
		"phase": "Running",
		"podIP": "192.0.2.4",
		"podIPs": [
			{
				"ip": "192.0.2.4"
			}
		]
	}
},
"responseObject": {
	"kind": "Pod",
	"apiVersion": "v1",
	"metadata": {
		"name": "test-pod",
		"namespace": "default",
		"uid": "fac82138-48a9-40bf-88f3-61ef0462b05c",
		"resourceVersion": "5658948",
		"creationTimestamp": "2026-04-10T05:04:49Z",
		"labels": {
			"run": "test-pod"
		},
		"managedFields": [
			{
				"manager": "kubectl-run",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:49Z",
				"fieldsType": "FieldsV1",
				"fieldsV1": {
					"f:metadata": {
						"f:labels": {
							".": {},
							"f:run": {}
						}
					},
					"f:spec": {
						"f:containers": {
							"k:{\"name\":\"test-pod\"}": {
								".": {},
								"f:args": {},
								"f:image": {},
								"f:imagePullPolicy": {},
								"f:name": {},
								"f:resources": {},
								"f:terminationMessagePath": {},
								"f:terminationMessagePolicy": {}
							}
						},
						"f:dnsPolicy": {},
						"f:enableServiceLinks": {},
						"f:restartPolicy": {},
						"f:schedulerName": {},
						"f:securityContext": {},
						"f:terminationGracePeriodSeconds": {}
					}
				}
			},
			{
				"manager": "kubelet",
				"operation": "Update",
				"apiVersion": "v1",
				"time": "2026-04-10T05:04:50Z",
				"fieldsType": "FieldsV1",
				"fieldsV1": {
					"f:status": {
						"f:conditions": {
							"k:{\"type\":\"ContainersReady\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"Initialized\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"PodReadyToStartContainers\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							},
							"k:{\"type\":\"Ready\"}": {
								".": {},
								"f:lastProbeTime": {},
								"f:lastTransitionTime": {},
								"f:status": {},
								"f:type": {}
							}
						},
						"f:containerStatuses": {},
						"f:hostIP": {},
						"f:hostIPs": {},
						"f:phase": {},
						"f:podIP": {},
						"f:podIPs": {
							".": {},
							"k:{\"ip\":\"192.0.2.4\"}": {
								".": {},
								"f:ip": {}
							}
						},
						"f:startTime": {}
					}
				},
				"subresource": "status"
			}
		]
	},
	"spec": {
		"volumes": [
			{
				"name": "kube-api-access-qfzpc",
				"projected": {
					"sources": [
						{
							"serviceAccountToken": {
								"expirationSeconds": 3607,
								"path": "token"
							}
						},
						{
							"configMap": {
								"name": "kube-root-ca.crt",
								"items": [
									{
										"key": "ca.crt",
										"path": "ca.crt"
									}
								]
							}
						},
						{
							"downwardAPI": {
								"items": [
									{
										"path": "namespace",
										"fieldRef": {
											"apiVersion": "v1",
											"fieldPath": "metadata.namespace"
										}
									}
								]
							}
						}
					],
					"defaultMode": 420
				}
			}
		],
		"containers": [
			{
				"name": "test-pod",
				"image": "registry.example.com:55000/demo/mariadb:11.3.2",
				"args": [
					"sleep",
					"100000"
				],
				"resources": {},
				"volumeMounts": [
					{
						"name": "kube-api-access-qfzpc",
						"readOnly": true,
						"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
					}
				],
				"terminationMessagePath": "/dev/termination-log",
				"terminationMessagePolicy": "File",
				"imagePullPolicy": "Always"
			}
		],
		"restartPolicy": "Always",
		"terminationGracePeriodSeconds": 30,
		"dnsPolicy": "ClusterFirst",
		"serviceAccountName": "default",
		"serviceAccount": "default",
		"nodeName": "master-2",
		"securityContext": {},
		"schedulerName": "default-scheduler",
		"tolerations": [
			{
				"key": "node.kubernetes.io/not-ready",
				"operator": "Exists",
				"effect": "NoExecute",
				"tolerationSeconds": 120
			},
			{
				"key": "node.kubernetes.io/unreachable",
				"operator": "Exists",
				"effect": "NoExecute",
				"tolerationSeconds": 120
			}
		],
		"priority": 0,
		"enableServiceLinks": true,
		"preemptionPolicy": "PreemptLowerPriority"
	},
	"status": {
		"phase": "Running",
		"conditions": [
			{
				"type": "PodReadyToStartContainers",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:54Z"
			},
			{
				"type": "Initialized",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:53Z"
			},
			{
				"type": "Ready",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:54Z"
			},
			{
				"type": "ContainersReady",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:54Z"
			},
			{
				"type": "PodScheduled",
				"status": "True",
				"lastProbeTime": null,
				"lastTransitionTime": "2026-04-10T05:04:49Z"
			}
		],
		"hostIP": "192.0.2.3",
		"hostIPs": [
			{
				"ip": "192.0.2.3"
			}
		],
		"podIP": "192.0.2.4",
		"podIPs": [
			{
				"ip": "192.0.2.4"
			}
		],
		"startTime": "2026-04-10T05:04:53Z",
		"containerStatuses": [
			{
				"name": "test-pod",
				"state": {
					"running": {
						"startedAt": "2026-04-10T05:04:54Z"
					}
				},
				"lastState": {},
				"ready": true,
				"restartCount": 0,
				"image": "registry.example.com:55000/demo/mariadb:11.3.2",
				"imageID": "registry.example.com:55000/demo/mariadb@sha256:e09c77fcece9f6adc370d3707c7f5be653036c1d1bba70fe841c4bc2f2292e52",
				"containerID": "containerd://5dc281c8af64469bf38bcf9dc337c994b44eb35025d290ae59c8bbb0214be667",
				"started": true,
				"volumeMounts": [
					{
						"name": "kube-api-access-qfzpc",
						"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
						"readOnly": true,
						"recursiveReadOnly": "Disabled"
					}
				]
			}
		],
		"qosClass": "BestEffort"
	}
},
"requestReceivedTimestamp": "2026-04-10T05:04:50.475327Z",
"stageTimestamp": "2026-04-10T05:04:50.483944Z",
"annotations": {
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": ""
}
}

별도 Istio 관측

Istio CNI의 test1 GET은 다른 UID·시각의 기록이다. Pod 정보를 읽은 사실을 보여 주지만 해당 GET만으로 iptables 규칙 적용 완료까지 입증하지 않는다. 일반 test-pod의 한 단계로 끼워 넣지 않는다.

Istio CNI의 별도 test1 조회 (응답 발췌)
plain text

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "d4b6a3c4-6f4c-44f6-8031-fd342d2a1c10",
	"stage": "RequestReceived",
	"requestURI": "/api/v1/namespaces/default/pods/test1",
	"verb": "get",
	"user": {
		"username": "system:serviceaccount:istio-system:istio-cni",
		"uid": "036d9877-7069-4cad-9a02-e0e4d1a49e08",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:istio-system",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"istio-cni-node-m72nn"
			],
			"authentication.kubernetes.io/pod-uid": [
				"8e5dddd5-ed6a-40ec-92e8-b87ad7bc2367"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.3"
	],
	"userAgent": "istio-cni/1.27.4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test1",
		"apiVersion": "v1"
	},
	"requestReceivedTimestamp": "2026-04-10T03:24:19.379572Z",
	"stageTimestamp": "2026-04-10T03:24:19.379572Z"
}

{
	"kind": "Event",
	"apiVersion": "audit.k8s.io/v1",
	"level": "RequestResponse",
	"auditID": "d4b6a3c4-6f4c-44f6-8031-fd342d2a1c10",
	"stage": "ResponseComplete",
	"requestURI": "/api/v1/namespaces/default/pods/test1",
	"verb": "get",
	"user": {
		"username": "system:serviceaccount:istio-system:istio-cni",
		"uid": "036d9877-7069-4cad-9a02-e0e4d1a49e08",
		"groups": [
			"system:serviceaccounts",
			"system:serviceaccounts:istio-system",
			"system:authenticated"
		],
		"extra": {
			"authentication.kubernetes.io/credential-id": [
				"JTI=EXAMPLE_CREDENTIAL_ID"
			],
			"authentication.kubernetes.io/node-name": [
				"master-2"
			],
			"authentication.kubernetes.io/node-uid": [
				"405a30a0-941a-4fd9-8d03-01812560ec90"
			],
			"authentication.kubernetes.io/pod-name": [
				"istio-cni-node-m72nn"
			],
			"authentication.kubernetes.io/pod-uid": [
				"8e5dddd5-ed6a-40ec-92e8-b87ad7bc2367"
			]
		}
	},
	"sourceIPs": [
		"192.0.2.3"
	],
	"userAgent": "istio-cni/1.27.4",
	"objectRef": {
		"resource": "pods",
		"namespace": "default",
		"name": "test1",
		"apiVersion": "v1"
	},
	"responseStatus": {
		"metadata": {},
		"code": 200
	},
	"responseObject": {
		"kind": "Pod",
		"apiVersion": "v1",
		"metadata": {
			"name": "test1",
			"namespace": "default",
			"uid": "e2658cea-50a0-4b31-9301-5aac87ce206e",
			"resourceVersion": "5631837",
			"creationTimestamp": "2026-04-10T03:24:18Z",
			"labels": {
				"run": "test1"
			},
			"managedFields": [
				{
					"manager": "kubectl-run",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T03:24:18Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:metadata": {
							"f:labels": {
								".": {},
								"f:run": {}
							}
						},
						"f:spec": {
							"f:containers": {
								"k:{\"name\":\"test1\"}": {
									".": {},
									"f:args": {},
									"f:image": {},
									"f:imagePullPolicy": {},
									"f:name": {},
									"f:resources": {},
									"f:terminationMessagePath": {},
									"f:terminationMessagePolicy": {}
								}
							},
							"f:dnsPolicy": {},
							"f:enableServiceLinks": {},
							"f:restartPolicy": {},
							"f:schedulerName": {},
							"f:securityContext": {},
							"f:terminationGracePeriodSeconds": {}
						}
					}
				},
				{
					"manager": "kubelet",
					"operation": "Update",
					"apiVersion": "v1",
					"time": "2026-04-10T03:24:18Z",
					"fieldsType": "FieldsV1",
					"fieldsV1": {
						"f:status": {
							"f:conditions": {
								"k:{\"type\":\"ContainersReady\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:message": {},
									"f:reason": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"Initialized\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"PodReadyToStartContainers\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:status": {},
									"f:type": {}
								},
								"k:{\"type\":\"Ready\"}": {
									".": {},
									"f:lastProbeTime": {},
									"f:lastTransitionTime": {},
									"f:message": {},
									"f:reason": {},
									"f:status": {},
									"f:type": {}
								}
							},
							"f:containerStatuses": {},
							"f:hostIP": {},
							"f:hostIPs": {},
							"f:startTime": {}
						}
					},
					"subresource": "status"
				}
			]
		},
		"spec": {
			"volumes": [
				{
					"name": "kube-api-access-rc5sg",
					"projected": {
						"sources": [
							{
								"serviceAccountToken": {
									"expirationSeconds": 3607,
									"path": "token"
								}
							},
							{
								"configMap": {
									"name": "kube-root-ca.crt",
									"items": [
										{
											"key": "ca.crt",
											"path": "ca.crt"
										}
									]
								}
							},
							{
								"downwardAPI": {
									"items": [
										{
											"path": "namespace",
											"fieldRef": {
												"apiVersion": "v1",
												"fieldPath": "metadata.namespace"
											}
										}
									]
								}
							}
						],
						"defaultMode": 420
					}
				}
			],
			"containers": [
				{
					"name": "test1",
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"args": [
						"sleep",
						"100000"
					],
					"resources": {},
					"volumeMounts": [
						{
							"name": "kube-api-access-rc5sg",
							"readOnly": true,
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
						}
					],
					"terminationMessagePath": "/dev/termination-log",
					"terminationMessagePolicy": "File",
					"imagePullPolicy": "Always"
				}
			],
			"restartPolicy": "Always",
			"terminationGracePeriodSeconds": 30,
			"dnsPolicy": "ClusterFirst",
			"serviceAccountName": "default",
			"serviceAccount": "default",
			"nodeName": "master-2",
			"securityContext": {},
			"schedulerName": "default-scheduler",
			"tolerations": [
				{
					"key": "node.kubernetes.io/not-ready",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				},
				{
					"key": "node.kubernetes.io/unreachable",
					"operator": "Exists",
					"effect": "NoExecute",
					"tolerationSeconds": 120
				}
			],
			"priority": 0,
			"enableServiceLinks": true,
			"preemptionPolicy": "PreemptLowerPriority"
		},
		"status": {
			"phase": "Pending",
			"conditions": [
				{
					"type": "PodReadyToStartContainers",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T03:24:23Z"
				},
				{
					"type": "Initialized",
					"status": "True",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T03:24:23Z"
				},
				{
					"type": "Ready",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T03:24:23Z",
					"reason": "ContainersNotReady",
					"message": "containers with unready status: [test1]"
				},
				{
					"type": "ContainersReady",
					"status": "False",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T03:24:23Z",
					"reason": "ContainersNotReady",
					"message": "containers with unready status: [test1]"
				},
				{
					"type": "PodScheduled",
					"status": "True",
					"lastProbeTime": null,
					"lastTransitionTime": "2026-04-10T03:24:23Z"
				}
			],
			"hostIP": "192.0.2.3",
			"hostIPs": [
				{
					"ip": "192.0.2.3"
				}
			],
			"startTime": "2026-04-10T03:24:23Z",
			"containerStatuses": [
				{
					"name": "test1",
					"state": {
						"waiting": {
							"reason": "ContainerCreating"
						}
					},
					"lastState": {},
					"ready": false,
					"restartCount": 0,
					"image": "registry.example.com:55000/demo/mariadb:11.3.2",
					"imageID": "",
					"started": false,
					"volumeMounts": [
						{
							"name": "kube-api-access-rc5sg",
							"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
							"readOnly": true,
							"recursiveReadOnly": "Disabled"
						}
					]
				}
			],
			"qosClass": "BestEffort"
		}
	},

API 객체와 노드의 실행 자원 대조하기

Pod 조회 화면과 etcd에 저장된 값

test-pod2의 watch 출력은 별도 생성 예의 화면이다. etcd의 /registry/pods/default/test-pod는 API 리소스가 저장된 키이며, 사람이 읽는 YAML과 바이트 표현이 다를 수 있다.

Revision은 etcd 저장소 변경의 논리적 revision이다. API 호출 횟수와는 구분한다. ModRevision은 해당 키의 마지막 변경 revision, Version은 그 키의 버전이다. RaftTerm은 Raft의 임기 번호이며 “리더가 바뀐 총 횟수”와 같다고 보지 않는다.

managedFields의 f:는 필드, k:는 목록 원소의 식별 키 등을 표현한다. managedFields는 어떤 필드를 관리하는지 기록한다. spec은 리소스에 원하는 설정값을 담는다. 다른 관리자의 update 가능 여부를 판단할 때는 Server-Side Apply의 충돌 처리와 일반 update를 구분한다. managedFields만으로 모든 update가 차단되지는 않는다.

test-pod2 watch 화면
plain text
test-pod2   0/1     Pending   0          0s
test-pod2   0/1     Pending   0          0s
test-pod2   0/1     ContainerCreating   0          0s
test-pod2   1/1     Running             0          1s
etcd 조회 명령과 바이트 원본
plain text
etcdctl --cacert=ca.pem --cert=admin-master-1.pem --key=admin-master-1-key.pem --endpoints=127.0.0.1:2379 get /registry/pods --prefix --keys-only
etcdctl --cacert=ca.pem --cert=admin-master-1.pem --key=admin-master-1-key.pem --endpoints=127.0.0.1:2379 get /registry/pods/default/test-pod --write-out=fields

# etcd 클러스터 전체의 ID (모든 노드가 동일)
"ClusterID" : 5215609492266341580
# 클러스터 내의 개별 노드 ID (마스터 1, 2, 3 이 각각 다름)
"MemberID" : 17551526217476798369
# etcd 키 공간 변경의 논리적 revision
"Revision" : 5694210
# Raft 임기 번호
"RaftTerm" : 23
# Key 값 
"Key" : "/registry/pods/default/test-pod"
# 이 key가 처음 생성된 etcd Revision번호
"CreateRevision" : 5658930
# 이 key가 마지막으로 변경된 etcd Revision 번호
"ModRevision" : 5658948
"Version" : 4
"Value" : "POD_SERIALIZED_VALUE_REDACTED"
"Lease" : 0
"More" : false
"Count" : 1
당시 값 대응 메모 (실제 디코더 출력과 구분)
plain text

manager: kubectl-run
operation: Update

manager: kubelet
operation: Update
fields:
  phase: Running
  conditions: Ready=True
  podIP: 192.0.2.4
  
podIP: 192.0.2.4
nodeIP: 192.0.2.3
identity: 4639

containerd://5dc281c8...
image: mariadb
status: running

etcd의 revision·key metadata · API 표현·필드 관리 개념

PID·namespace·Cilium endpoint의 연결

런타임 목록에서는 앱 컨테이너 ID 5dc281c8...와 sandbox ID 79e11e7c...를 구분할 수 있다. 어떤 프로세스가 돌아가는지 알아보려고 이미지 이름에 더해 PID와 프로세스 트리를 확인했다. PID 2596920의 pstree 출력에는 sleep이 나타난다. 별도 목록의 /pause는 sandbox를 유지한다. 앱의 sleep과는 별개의 프로세스다.

PID는 crictl inspect의 런타임 정보에서 확인한다. 이 필드의 위치는 런타임과 버전에 따라 다를 수 있으므로 먼저 응답 구조를 살핀다. 아래 명령으로 PID를 조회할 수 있다. 뒤에 접어 둔 출력은 당시 수집한 관측 자료다. 원래 메모의 grep 옵션은 문맥을 표시하는 형태로 바로잡았다.

bash
crictl inspect CONTAINER_ID
# jq가 있고 해당 런타임이 info.pid를 제공하는 경우
crictl inspect CONTAINER_ID | jq '.info.pid'

identity=4639는 Cilium의 신원 식별자를 대응시킨 값이며 Pod의 표준 status 필드가 아니다.

Pod 네트워크 namespace 안에는 eth0@if272가 있고 호스트에는 lxcbd606442fea8@if271이 있다. 각 이름 뒤의 peer 번호와 Cilium endpoint 354의 networking.interface-index=272, interface-name=lxcbd606442fea8을 대조하면 Pod 측 장치와 호스트 측 veth, Cilium endpoint를 연결할 수 있다. 이 출력에서 확인할 수 있듯이 Cilium endpoint에는 IP와 identity 외에 인터페이스 정보도 있다.

veth는 커널의 가상 네트워크 장치 쌍이다. Pod IP 그 자체나 사용자 프로세스의 socket과 같지 않다. Cilium의 identity·정책·NAT·전달은 경로와 설정에 따라 다른 BPF hook에서 처리될 수 있으므로 모든 패킷이 동일한 tc 경로를 따른다고 고정하지 않는다.

nsenter -m으로 보이는 파일은 이미지 rootfs, bind mount, tmpfs, 볼륨 등 여러 mount의 조합이다. 전부 하나의 host 디렉터리라고 볼 수 없다. cgroup 경로를 대조하면 이 프로세스가 해당 Pod·컨테이너의 자원 제어 그룹에 속하는지 확인할 수 있다.

nerdctl 컨테이너·pause 목록
plain text
5dc281c8af64    registry.example.com:55000/demo/mariadb:11.3.2                               "docker-entrypoint.s…"    2 hours ago       Up                 k8s://default/test-pod/test-pod
79e11e7c6de9    registry.example.com:55000/k8s/pause:3.10                                       "/pause"                  2 hours ago
crictl 컨테이너 목록
plain text
5dc281c8af644       bc6434c28e9a9       2 hours ago         Running             test-pod                  0                   79e11e7c6de99       test-pod
PID·namespace·veth·monitor·mount·cgroup 조회 결과
plain text
# PID 주변 문맥을 확인하는 조회 예시
crictl inspect CONTAINER_ID | grep -C 10 '"pid"'
    "pid": 2596920,
    
# namespace 실체
cd /proc/2596920/ns

ls -al
dr-x--x--x 2 root root 0 Apr 10 14:04 .
dr-xr-xr-x 9 root root 0 Apr 10 14:04 ..
lrwxrwxrwx 1 root root 0 Apr 10 16:38 cgroup -> 'cgroup:[4026532852]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 ipc -> 'ipc:[4026532848]'
lrwxrwxrwx 1 root root 0 Apr 10 14:04 mnt -> 'mnt:[4026532850]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 net -> 'net:[4026532782]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 pid -> 'pid:[4026532851]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 pid_for_children -> 'pid:[4026532851]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 time -> 'time:[4026531834]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 time_for_children -> 'time:[4026531834]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 user -> 'user:[4026531837]'
lrwxrwxrwx 1 root root 0 Apr 10 16:38 uts -> 'uts:[4026532847]'

# 실제 격리된 해당 network namespace로 이동
root@lab-node:/proc/2596920/ns# nsenter -t 2596920 -n
root@lab-node:/proc/2596920/ns# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
271: eth0@if272: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 5a:c4:35:4b:8d:e6 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 192.0.2.4/32 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::58c4:35ff:fe4b:8de6/64 scope link
       valid_lft forever preferred_lft forever
root@lab-node:/proc/2596920/ns# exit


# 호스트
root@lab-node:~# ip link show type veth
4: cilium_net@cilium_host: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
    link/ether 4a:74:f7:78:67:37 brd ff:ff:ff:ff:ff:ff
5: cilium_host@cilium_net: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 96:a4:98:2c:39:5c brd ff:ff:ff:ff:ff:ff
12: lxc_health@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 3e:13:f5:f3:06:6d brd ff:ff:ff:ff:ff:ff link-netnsid 2
270: lxcd972a9bc020c@if269: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 26:4d:9c:18:ff:88 brd ff:ff:ff:ff:ff:ff link-netns cni-a150f4bd-a5a0-7ba5-1bf1-6a4d3925c2b2
272: lxcbd606442fea8@if271: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b6:b1:a3:24:d7:aa brd ff:ff:ff:ff:ff:ff link-netns cni-db410056-bf9d-fade-6f83-36bd723e1b83
18: lxc745df2521490@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 56:90:51:4c:69:4c brd ff:ff:ff:ff:ff:ff link-netns cni-36581559-c585-bfb0-e375-d378130b31da
20: lxc3275942c4756@if19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether da:fb:39:4a:b2:01 brd ff:ff:ff:ff:ff:ff link-netns cni-90e954df-64ee-197b-49e2-c5d60deabfaf
278: lxc827c74058d93@if277: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 1a:c4:ff:6d:65:da brd ff:ff:ff:ff:ff:ff link-netns cni-a56beb9e-8fcf-f901-f194-929329aa32a7
22: lxc7d44994b3dde@if21: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b2:5a:45:50:4b:73 brd ff:ff:ff:ff:ff:ff link-netns cni-f0306130-53bc-e7c0-f6f7-53b274e7840e
24: lxcae09cafb1c61@if23: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 6e:73:22:72:ca:a3 brd ff:ff:ff:ff:ff:ff link-netns cni-c877b391-1099-2539-f98e-15419dafe439

# 해당 노드에서 관측한 Cilium monitor 출력
-> stack flow 0x0 , identity 4639->world state established ifindex 0 orig-ip 0.0.0.0: 192.0.2.4 -> 8.8.8.8 icmp EchoRequest
-> endpoint 354 flow 0x0 , identity world->4639 state reply ifindex lxcbd606442fea8 orig-ip 8.8.8.8: 8.8.8.8 -> 192.0.2.4 icmp EchoReply

# 호스트 측 veth 이름과 peer 번호 확인
root@lab-node:~# ip a | grep lxcbd606442fea8
272: lxcbd606442fea8@if271: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000



# 볼륨
root@lab-node:/proc/2596920/ns# nsenter -t 2596920 -m
root@lab-node:/# ls
bin   dev                         etc   lib    lib64   media  opt   root  sbin  sys  usr
boot  docker-entrypoint-initdb.d  home  lib32  libx32  mnt    proc  run   srv   tmp  var

# mount namespace에서 보이는 파일은 rootfs·bind mount·tmpfs·볼륨 등의 조합이다.
root@lab-node:/proc/2596920# cat cgroup
0::/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-podfac82138_48a9_40bf_88f3_61ef0462b05c.slice/cri-containerd-5dc281c8af64469bf38bcf9dc337c994b44eb35025d290ae59c8bbb0214be667.scope
root@lab-node:/proc/2596920#

# 앱 컨테이너 PID의 실제 프로세스 확인
root@lab-node:/proc/2596920# pstree -p 2596920
sleep(2596920)
root@lab-node:/proc/2596920#

Cilium endpoint 354 조회 결과
plain text
# Cilium endpoint의 networking 필드와 호스트 인터페이스 정보 대조
root@lab-node:/home/cilium# cilium endpoint list
354        Disabled           Disabled          4639       k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name=default                    192.0.2.4    ready
                                                           k8s:io.cilium.k8s.policy.cluster=default                                       
                                                           k8s:io.cilium.k8s.policy.serviceaccount=default                                
                                                           k8s:io.kubernetes.pod.namespace=default                                        
                                                           k8s:run=test-pod    
                                                           
root@lab-node:/home/cilium# cilium endpoint get 354
[
  {
    "id": 354,
    "spec": {
      "label-configuration": {},
      "options": {
        "ConntrackAccounting": "Disabled",
        "Debug": "Disabled",
        "DebugLB": "Disabled",
        "DebugPolicy": "Disabled",
        "DropNotification": "Enabled",
        "MonitorAggregationLevel": "Medium",
        "PolicyAccounting": "Enabled",
        "PolicyAuditMode": "Disabled",
        "PolicyVerdictNotification": "Enabled",
        "SourceIPVerification": "Enabled",
        "TraceNotification": "Enabled"
      }
    },
    "status": {
      "controllers": [
        {
          "configuration": {
            "error-retry": true,
            "error-retry-base": "2s",
            "interval": "1s"
          },
          "name": "endpoint-354-regeneration-recovery",
          "status": {
            "last-failure-timestamp": "0001-01-01T00:00:00.000Z",
            "last-success-timestamp": "0001-01-01T00:00:00.000Z"
          },
          "uuid": "3759a2f1-a7e9-46e5-9ad3-a17e8f3583f4"
        },
        {
          "configuration": {
            "error-retry": true,
            "interval": "5m0s"
          },
          "name": "resolve-identity-354",
          "status": {
            "last-failure-timestamp": "0001-01-01T00:00:00.000Z",
            "last-success-timestamp": "2026-04-10T08:09:54.104Z",
            "success-count": 38
          },
          "uuid": "0ce5ecc3-00cb-4fe1-be50-dab2dff130a7"
        },
        {
          "configuration": {
            "error-retry": true
          },
          "name": "resolve-labels-default/test-pod",
          "status": {
            "last-failure-timestamp": "0001-01-01T00:00:00.000Z",
            "last-success-timestamp": "2026-04-10T05:04:54.078Z",
            "success-count": 1
          },
          "uuid": "ace2e69d-d95b-4d2d-b71c-4a97a5f645e4"
        },
        {
          "configuration": {
            "error-retry": true,
            "interval": "15m0s"
          },
          "name": "sync-policymap-354",
          "status": {
            "last-failure-timestamp": "0001-01-01T00:00:00.000Z",
            "last-success-timestamp": "2026-04-10T08:04:54.134Z",
            "success-count": 13
          },
          "uuid": "30139182-0613-4423-9186-6effc2a03c8c"
        },
        {
          "configuration": {
            "error-retry": true,
            "interval": "10s"
          },
          "name": "sync-to-k8s-ciliumendpoint (354)",
          "status": {
            "last-failure-timestamp": "0001-01-01T00:00:00.000Z",
            "last-success-timestamp": "2026-04-10T08:11:34.939Z",
            "success-count": 1122
          },
          "uuid": "aaf75acc-6428-4593-9e73-2f194dc50c07"
        }
      ],
      "external-identifiers": {
        "cni-attachment-id": "79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab:eth0",
        "container-id": "79e11e7c6de9976c0ee093065d94d2e422642dc300c0e278754267fe9dbc94ab",
        "k8s-namespace": "default",
        "k8s-pod-name": "test-pod",
        "pod-name": "default/test-pod"
      },
      "health": {
        "bpf": "OK",
        "connected": true,
        "overallHealth": "OK",
        "policy": "OK"
      },
      "identity": {
        "id": 4639,
        "labels": [
          "k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name=default",
          "k8s:io.cilium.k8s.policy.cluster=default",
          "k8s:io.cilium.k8s.policy.serviceaccount=default",
          "k8s:io.kubernetes.pod.namespace=default",
          "k8s:run=test-pod"
        ]
      },
      "labels": {
        "realized": {},
        "security-relevant": [
          "k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name=default",
          "k8s:io.cilium.k8s.policy.cluster=default",
          "k8s:io.cilium.k8s.policy.serviceaccount=default",
          "k8s:io.kubernetes.pod.namespace=default",
          "k8s:run=test-pod"
        ]
      },
      "log": [
        {
          "code": "OK",
          "message": "Successfully regenerated endpoint program (Reason: periodic endpoint regeneration)",
          "state": "ready",
          "timestamp": "2026-04-10T08:09:41Z"
        }
      ],
      "networking": {
        "addressing": [
          {
            "ipv4": "192.0.2.4",
            "ipv4-pool-name": "default"
          }
        ],
        "container-interface-name": "eth0",
        "host-mac": "b6:b1:a3:24:d7:aa",
        "interface-index": 272,
        "interface-name": "lxcbd606442fea8",
        "mac": "5a:c4:35:4b:8d:e6"
      },
      "policy": {
        "proxy-policy-revision": 1,
        "proxy-statistics": [],
        "realized": {
          "allowed-egress-identities": [
            0
          ],
          "allowed-ingress-identities": [
            0,
            1
          ],
          "build": 1,
          "denied-egress-identities": null,
          "denied-ingress-identities": null,
          "id": 4639,
          "l4": {
            "egress": [],
            "ingress": []
          },
          "policy-enabled": "none",
          "policy-revision": 1
        },
        "spec": {
          "allowed-egress-identities": [
            0
          ],
          "allowed-ingress-identities": [
            0,
            1
          ],
          "build": 1,
          "denied-egress-identities": null,
          "denied-ingress-identities": null,
          "id": 4639,
          "l4": {
            "egress": [],
            "ingress": []
          },
          "policy-enabled": "none",
          "policy-revision": 1
        }
      },
      "realized": {
        "label-configuration": {},
        "options": {
          "ConntrackAccounting": "Disabled",
          "Debug": "Disabled",
          "DebugLB": "Disabled",
          "DebugPolicy": "Disabled",
          "DropNotification": "Enabled",
          "MonitorAggregationLevel": "Medium",
          "PolicyAccounting": "Enabled",
          "PolicyAuditMode": "Disabled",
          "PolicyVerdictNotification": "Enabled",
          "SourceIPVerification": "Enabled",
          "TraceNotification": "Enabled"
        }
      },
      "state": "ready"
    }
  }
]
별도 시점의 namespace·pause·sleep 목록
plain text

4026532852 cgroup      1 2596920 root             sleep 100000
4026532853 net         2 2654246 65535            /pause
4026532917 mnt         1 2654246 65535            /pause
4026532918 uts         2 2654246 65535            /pause
4026532919 ipc         2 2654246 65535            /pause
4026532920 pid         1 2654246 65535            /pause
4026532921 mnt         1 2654273 root             sleep 100000
4026532922 pid         1 2654273 root             sleep 100000
4026532923 cgroup      1 2654273 root             sleep 100000

별도 시점의 namespace 목록은 pause와 sleep이 어떤 namespace inode를 참조하는지 비교하는 보조 자료다. PID와 inode 값이 다른 조회 시점의 출력과 섞여 있으므로 모든 번호를 한 시점의 프로세스 트리로 합치지 않는다. pause의 UID 65535도 숫자 UID다. 호스트에 영향을 줄 수 없는 특별한 사용자를 뜻하는 표시는 아니다.

sleep 10000은 약 2시간 46분 40초이고 sleep 100000은 약 27시간 46분 40초다. sleep 종료 후 restartPolicy=Always 설정에 따라 앱이 다시 실행될 수 있지만 pause가 앱의 sleep 만료 전에 주기적으로 재시작돼야 하는 것은 아니다. probe는 앱의 시작·생존·준비 상태를 확인하는 별도 수단이다.

Cilium endpoint 생명주기

생성 완료를 어디까지 확인했는가

이 자료에서는 API 응답의 노드 배정과 Running 상태, 런타임의 sandbox·앱 컨테이너, Cilium endpoint와 인터페이스의 대응을 확인했다.

앱 서비스의 정상 응답은 검증 범위 밖이다. kubelet과 런타임 사이의 개별 RPC와 내부 syscall 전체도 직접 추적하지 않았다. 같은 UID와 auditID로 이어지지 않는 기록도 있어 모든 출력을 하나의 정밀한 시간표로 제시하지 않는다. 생성이 멈춘 문제를 조사할 때도 먼저 어느 계층까지 확인됐는지를 정한 뒤 그다음 단계의 근거를 모으는 방식으로 접근할 수 있다.

종료 과정은 다음 문서에서 같은 관측 원칙으로 읽는다.

Pod 삭제 추적: 종료 신호·상태·Finalizer·API 제거