Skip to content

docs(eks-best-practices): #98 감사 교정 -- pod-lifecycle 1/2 probe·readiness·이미지·훅 (KO/EN) - #177

Merged
devfloor9 merged 2 commits into
mainfrom
fix/g98-pod-lifecycle-1
Oct 19, 2026
Merged

devfloor9 merged 2 commits into
mainfrom
fix/g98-pod-lifecycle-1

Conversation

@devfloor9

Copy link
Copy Markdown
Owner

요약

2026-09-19 전수 감사 이슈 #98(EKS 운영)의 미처리 항목 중, 2026-10-15 재조정에서 "현재 텍스트에 결함이 남아 있고 공개 정보로 고칠 수 있음" 또는 "한국어 정본만 고쳐지고 영어판에 옛 문구가 남음"으로 판정된 항목을 섹션 단위로 교정하는 PR 시리즈의 하나입니다. 이 PR은 eks-best-practices operations-reliability/pod-lifecycle (part 1/2) 영역의 문서 8편(KO 정본 + EN 번역)에 걸친 49건: 적용 49을 다룹니다.

교정 원칙은 저장소 WRITING_GUIDE.md 5절(사실 보존과 출처)을 따랐습니다. 직접 열어 확인한 1차 공개 출처(aws.amazon.com, curl.se, docs.aws.amazon.com, docs.docker.com, kiro.dev, kubernetes.io, man7.org, raw.githubusercontent.com)로 확인되는 사실은 바로잡고 항목마다 출처를 기록했으며, 출처가 없는 성능·비용·효과 수치는 "예시·추정" 표기로 한정하거나 삭제했고, 존재하지 않는 제품·플래그·API는 삭제했습니다. 수치·버전·명령을 새로 만들어 넣은 곳은 없으며, 저자 판단이 필요한 항목은 수정하지 않고 아래 "보류 항목"에 남겼습니다. 영어판은 한국어 정본의 변경을 같은 자리에 반영했습니다.

처리 항목 (49건: 적용 49)

ai-probe-optimization, checklist-references, container-images, lifecycle-hooks, shutdown-basics (22건)

항목 문서 변경 전 → 변경 후 (요지) 근거
HYP-OPS-126 ai-probe-optimization brew install aws/tap/kiro 등 미검증 Kiro CLI 명령 → 예시로 한정하고 공식 설치·CLI 문서 링크 https://kiro.dev/docs/getting-started/installation
HYP-OPS-128 ai-probe-optimization 하나의 MCP 설정으로 모든 데이터 소스 가정 → 소스별 서버·권한 범위 설명 추가 https://raw.githubusercontent.com/awslabs/mcp/main/src/eks-mcp-server/README.md
HYP-OPS-129 ai-probe-optimization pod_cpu_utilization에 PodName만 → Namespace·ClusterName 차원 추가 https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-EKS.html
HYP-OPS-130 ai-probe-optimization 신뢰도만으로 프로덕션 패치 → 가드레일 없는 비프로덕션 예시임을 경고로 명시 한정 표기
HYP-OPS-132 ai-probe-optimization selector·template 라벨 없는 Deployment → spec.selector와 라벨 추가로 유효화 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/workloads/controllers/deployment.md
HYP-OPS-135 ai-probe-optimization kubelet 차단을 podSelector:{}+kube-system로 해결 → 노드 CIDR ipBlock으로 좁히고 근본 원인 정정 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/services-networking/network-policies.md
HYP-OPS-137 checklist-references Readiness에 외부 의존성 무조건 포함 → 복제본별 독립일 때만 포함(공유 의존성 제외) https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md
HYP-OPS-138 checklist-references ALB 경로 일치·모든 LB에 readiness gate → 유효 엔드포인트 확인·IP 타겟/주입 범위로 한정 https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.14.0/docs/deploy/pod_readiness_gate.md
HYP-OPS-139 checklist-references, shutdown-basics 고정 sleep 5가 트래픽 차단 보장 → 조정 가능한 예시로, 가능성 완화로 재서술 한정 표기
HYP-OPS-140 checklist-references PDB·복제본 3개+ 무조건 필수 → 다중 복제본 무상태 HA로 한정, 싱글턴·배치 예외 https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
HYP-OPS-142 container-images prod node_modules 뒤 COPY . . 덮어쓰기 → COPY 순서 변경 + .dockerignore 추가 https://docs.docker.com/build/building/context/
HYP-OPS-143 container-images COPY target/*.jar(다중 jar 모호) → -Dmaven.jar.finalName=app + 단일 app.jar 복사 https://docs.docker.com/reference/dockerfile/
HYP-OPS-144 container-images 필수 필드 없는 EC2NodeClass → role·subnetSelectorTerms·securityGroupSelectorTerms 추가 https://raw.githubusercontent.com/aws/karpenter-provider-aws/v0.37.0/pkg/apis/crds/karpenter.k8s.aws_ec2nodeclasses.yaml
HYP-OPS-145 container-images 프리풀 docker pull(containerd 노드) → ctr -n k8s.io images pull로 교체 https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html
HYP-OPS-146 container-images init container의 sh(scratch/distroless에 없음) → command 제거, 풀 자체로 존재 증명 https://raw.githubusercontent.com/GoogleContainerTools/distroless/main/README.md
HYP-OPS-155 lifecycle-hooks "Hook 대기 없이 Running" → Hook 완료 전까지 Running 전환 안 됨으로 정정 https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
HYP-OPS-156 lifecycle-hooks 기한·실패 처리 없는 save-state curl → curl -sf --max-time 10 ... || echo 추가 https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
HYP-OPS-157 lifecycle-hooks USR1=로그 플러시, 수동 TERM → USR1은 앱 정의·kubelet SIGTERM과 중복임을 주석 https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
HYP-OPS-158 lifecycle-hooks "두 가지 방식"(exec, httpGet) → 세 가지(sleep 포함)로 정정, 표에 sleep 행 추가 https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
HYP-OPS-232 shutdown-basics "API Server가 상태를 Terminating으로 변경" → deletionTimestamp 설정(kubectl 표시) https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
HYP-OPS-233 shutdown-basics 전제 없는 T+0~60 타임라인 → terminationGracePeriodSeconds: 60·preStop sleep 5 가정 명시 https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
HYP-OPS-234 shutdown-basics "preStop이 kill -TERM 1 실행" → preStop 완료 후 kubelet이 런타임에 SIGTERM 요청 https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/

보류: 없음(모든 항목 적용).

node, node-readiness, probe-antipatterns (27건)

항목 문서 변경 전 → 변경 후 (요지) 근거
HYP-OPS-058 node.md 소유 태그 eks:kubernetes.io/cluster-name → kubernetes.io/cluster/<name> = owned https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html
HYP-OPS-059 node.md "SSM 정책 노드 그룹 기본 포함" → 선택 사항, 직접 연결 필요(필수 정책 명시) https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html
HYP-OPS-060 node.md DiskPressure 단일 10%·PID 5% → nodefs 10%/imagefs 15%, PID 백분율 기본값 없음 https://raw.githubusercontent.com/kubernetes/kubernetes/v1.34.0/pkg/kubelet/eviction/defaults_linux.go
HYP-OPS-061 node.md DiskPressure 즉시 prune → 디스크/inode 원인 식별 후 정리 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/architecture/garbage-collection.md
HYP-OPS-062 node.md 개명 시점 EN v1.2+/KO v1.0 → v0.32(베타)·v1.0(안정) 정렬 https://aws.amazon.com/blogs/containers/karpenter-graduates-to-beta/
HYP-OPS-064 node.md, node-readiness.md Ready 이후 Taint 레이스 미언급 → 레이스 명시, --register-with-taints/schedulingGates 권장 https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/main/docs/book/src/user-guide/getting-started.md
HYP-OPS-065 node.md Taint 접두사 node.readiness/ → readiness.k8s.io/(그림·grep) https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/main/docs/book/src/user-guide/getting-started.md
HYP-OPS-066 node.md readiness gate 어노테이션·등록 대기 → 네임스페이스 라벨·Healthy 대기 https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.14.0/docs/deploy/pod_readiness_gate.md
HYP-OPS-067 node.md "실시간 리소스 사용률" → 스케줄 요청량 대 할당 용량(및 비용) https://raw.githubusercontent.com/awslabs/eks-node-viewer/main/README.md
HYP-OPS-160 node-readiness.md 모든 NRR 예시 namespace: kube-system 제거(클러스터 범위) https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/v0.1.1/config/crd/bases/readiness.node.x-k8s.io_nodereadinessrules.yaml
HYP-OPS-161 node-readiness.md 두 슬래시 키 readiness.k8s.io/acme.com/... → readiness.k8s.io/network-unavailable https://raw.githubusercontent.com/kubernetes/apimachinery/v0.34.0/pkg/util/validation/validation.go
HYP-OPS-164 node-readiness.md enforcementMode: dry-run → dryRun: true 불리언(+ 유효 모드) https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/v0.1.1/config/crd/bases/readiness.node.x-k8s.io_nodereadinessrules.yaml
HYP-OPS-165 node-readiness.md vpc-cni·NPD 규칙에 필수 nodeSelector 추가 https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/v0.1.1/config/crd/bases/readiness.node.x-k8s.io_nodereadinessrules.yaml
HYP-OPS-166 node-readiness.md init container에 hostPath 볼륨·volumeMount 추가(CNI 파일 접근) https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/workloads/pods/init-containers.md
HYP-OPS-167 node-readiness.md kubectl patch node에 --subresource=status 추가 https://raw.githubusercontent.com/kubernetes/kubernetes/v1.34.0/pkg/registry/core/node/strategy.go
HYP-OPS-168 node-readiness.md Go if err != nil → ret != nvml.SUCCESS, version 사용 https://raw.githubusercontent.com/NVIDIA/go-nvml/main/pkg/nvml/system.go
HYP-OPS-169 node-readiness.md NVML 열거 = device-plugin 준비 등식 → kubelet 등록 확인 필요 명시 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md
HYP-OPS-170 node-readiness.md "자동 차단 안 함" 전면 주장 → DiskPressure/NetworkUnavailable 자동 Taint, 임의 NPD는 아님 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
HYP-OPS-171 node-readiness.md "완전한 3계층/트래픽 안전성" → "계층별 강화"로 완화 한정 표기
HYP-OPS-174 node-readiness.md 404 Helm repo → OCI 차트(oci://registry.k8s.io/..., nrr-system) + Kustomize 유지 https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/main/docs/book/src/user-guide/installation.md
HYP-OPS-175 node-readiness.md 검증 -n kube-system -l app=...·404 예시 → -n nrr-system -l control-plane=controller-manager, 404 삭제 https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/v0.1.1/config/manager/manager.yaml
HYP-OPS-176 node-readiness.md 진단/수동 테스트 타입 CNIReady → vpc.amazonaws.com/CNIReady https://raw.githubusercontent.com/kubernetes-sigs/node-readiness-controller/main/docs/book/src/user-guide/getting-started.md
HYP-OPS-178 node-readiness.md "Pod 생성 차단"·PDB가 배치 차단 → NoSchedule은 스케줄 차단, PDB는 중단 제한 https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
HYP-OPS-179 probe-antipatterns.md "크래시 2분 감지 불가" → 크래시는 kubelet이 재시작, 행(hang)만 지연 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/concepts/workloads/pods/pod-lifecycle.md
HYP-OPS-180 probe-antipatterns.md 공유 엔드포인트 자체를 안티패턴 → 외부 의존성 확인 시로 조건부화(앵커 보존) https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md
HYP-OPS-181 probe-antipatterns.md 주석 "30초 후 재시작" → "연속 실패 ~30초 감지 예산 후 재시작" https://raw.githubusercontent.com/kubernetes/kubernetes/v1.34.0/pkg/kubelet/prober/worker.go
HYP-OPS-182 probe-antipatterns.md "매 Probe 30초 blocking" → timeout은 상한, 느린/멈춘 대상만 30초 소요 https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

보류: 없음 (deferred_author 0건, not_done 0건).

보류·부분 적용 항목

없음(모든 항목 적용).

변경 규모

  • 16파일(KO 8 + EN 8), +381/−256, 커밋 2개(유닛 단위). 본문 내용이 바뀐 문서는 scripts/update-doc-metadata.js --kind content로 last_update·reading_time을 재생성했습니다.
  • 헤딩 문구를 바꾼 곳은 옛 슬러그를 명시적 {#...} 앵커로 양 로케일에 보존했습니다. 사이드바·라우팅·프론트매터 키 집합 변경 없음.

검증 결과

  • 조립은 d96abbff(2026-10-15 main) 위에서 했고, docs(aidlc): #99 감사 교정 -- enterprise 검증·ISO 42001·역할 구성 (KO/EN) #170~docs(eks-best-practices): #98 감사 교정 -- eks-debugging·probe-workloads (KO/EN) #175 머지 후의 main 4e4caeb1에 rebase했습니다(충돌 0; 이 PR의 파일과 그 사이 main 변경 파일의 겹침 0). rebase 후 아래 오프라인 게이트를 다시 실행했습니다.
  • 오프라인 테스트 9단계(tag-pages, document-tools, llm-wiki-components, validate-links, ssr-unicode, doc-metadata, document-examples, gateway-conformance) 전부 통과, 실행 후 추적 파일 변경 0.
  • 앵커·펜스·YAML 파싱·KO/EN 코드 블록 언어 패리티 검사: 16문서·코드 0파일 문제 0.
  • 한국어 aidocready 린트(저장소 프로파일): 변경된 KO 파일의 Warning 수가 main과 동일 (KO 8파일: main W1/S3 → PR W1/S3; Warning 동일, Suggestion은 게이트 대상 아님).
  • 사실 보존 대조(fact_diff): 제거·변경된 수치·URL·셀은 모두 위 표의 항목에 귀속되며(각 유닛 결과 JSON의 fact_changes), 그 밖의 수치·URL 변동 없음.
  • 전체 빌드 체인(조립 시점 HEAD a957b314, base d96abbff): docusaurus build(EN+KO) 783초, Broken link 0 / Broken anchor 0 / Error 0 (EN+KO build 성공); llm-wiki 컴포넌트 테스트 183/183; validate-links 458파일·7168링크·내부 3115건 finding 0; 체인 실행 후 추적 파일 변경 0. 변경 문서 쌍이 EN·KO 양쪽 페이지로 렌더되고 표본 3건의 교정 문구가 렌더 HTML에 반영(옛 문구 0회)됨을 확인했습니다. rebase 뒤에는 파일 겹침이 0이라 빌드 체인을 다시 돌리지 않았고, 최종 빌드는 PR CI(Build and Deploy)가 수행합니다.

리뷰어가 확인할 항목

  • ai-probe-optimization: unverified Kiro CLI/MCP install block replaced by example-only comments + note (both locales); kiro.aws/v1alpha1 agent YAML kept as labelled example; preStop sleep restated as mitigation, not guarantee.
  • node-readiness/node.md: self-managed node tag corrected to kubernetes.io/cluster/=owned; SSM access described as optional (AmazonSSMManagedInstanceCore not attached by default to MNG roles) -- confirm against current EKS docs; eviction thresholds labelled as kubelet hard-eviction defaults.

불변 항목

이 PR의 유닛이 소유한 파일 외에는 바꾸지 않았습니다(컴포넌트·static 파일은 소유 문서의 유닛에 귀속된 경우에만 수정). 감사 장부(audits/2026-09-19/tracking.json·corrections.json)는 이 PR에서 갱신하지 않으며, 그룹 PR들이 머지된 뒤 이슈별 장부 PR로 한 번에 기록합니다(동시에 열린 PR 간 JSON 충돌 방지).

Part of #98

…사이클 사실 교정 (KO/EN)

22개 항목을 모두 적용했습니다(applied 22, 보류·미복제 0).
주요 교정: pod_cpu_utilization 차원에 Namespace·ClusterName 추가, Q Developer
Deployment에 selector·template 라벨 추가, EC2NodeClass 필수 필드 추가와
docker pull을 containerd ctr로 교체, scratch/distroless용 init container의 sh 제거,
PostStart가 완료 전 Running 전환을 막는다는 사실로 정정, Hook 핸들러 세 종류(sleep 포함)
반영, API Server의 deletionTimestamp 설정, preStop 완료 후 kubelet의 SIGTERM 요청으로
정정. 미검증 Kiro CLI·MCP 블록과 자동 변경 블록은 예시·가드레일 안내로 한정하고
preStop sleep은 보장이 아닌 완화로 재서술했습니다.
출처는 issues/fix/results/g98-pod-lifecycle-1-u1.result.json에 항목별로 기록.

Part of #98
노드 디버깅·Node Readiness·Probe 안티패턴 3개 문서 쌍에서 27개 항목을
한국어 정본과 영어 번역에 동일하게 교정했습니다. 적용 27건, 한정 0건,
보류 0건입니다.

주요 사실 교정: 자체관리형 노드 소유 태그를 kubernetes.io/cluster/<name>=
owned로 수정, SSM 정책은 노드 그룹 기본 포함이 아닌 선택 사항으로 명시,
kubelet 기본 축출 임계값(nodefs 10%/imagefs 15%)과 PIDPressure 백분율
기본값 부재를 반영, Karpenter 리소스 개명을 v0.32(베타)/v1.0(안정)으로
정정했습니다. NodeReadinessRule은 클러스터 범위이므로 namespace를 제거하고
필수 nodeSelector 추가, Taint 키 접두사를 readiness.k8s.io/로, dry-run을
dryRun:true 불리언으로, 설치 경로를 OCI Helm/Kustomize(nrr-system)로 교정,
init container에 hostPath 마운트와 status 서브리소스 패치를 추가하고 Go
NVML 예시를 nvml.Return 비교로 바로잡았습니다. Probe 안티패턴은 크래시와
행(hang) 구분, 공유 엔드포인트의 조건부 위험, timeout 상한 의미를 명확히
했습니다.

출처는 issues/fix/results/g98-pod-lifecycle-1-u2.result.json에 항목별로 기록

Part of #98
@devfloor9
devfloor9 merged commit d6667aa into main Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant