Skip to content

Kubernetes/EKS トラブルシューティング・プレイブック: 症状 → 診断 → 原因 → 修正 ​

元の例に記録されたバージョン: Amazon EKS 1.36 の元の出力例(コントロールプレーン v1.36.2-eks-bca9cf6、platform version eks.9、Karpenter 1.4、VPC CNI v1.21、CoreDNS v1.14) 最終確認日: 2026年9月11日

< 前へ: Zonal Cluster Operations | 目次 >


午前3時にページャーが鳴ってターミナルを開いたときに必要なのは、概念の解説ではなく「今見えている状況で次に入力するコマンド」です。このドキュメントは概念ではなく症状から始めます。各症状について、「見えているもの → 実行するもの → 出力例 → 最も一般的な原因と修正方法」を1つのまとまりにしています。

以下の出力例は、元の2026年9月2日の文書に記録された環境を示すもので、公式資料の記述も含みます。このレビューでは、そのクラスターを再実行しておらず、元の取得ログも独立に検証していません。特にKarpenter互換性表によると、Kubernetes 1.36にはKarpenter 1.13以降が必要です。記録された1.4.0の組み合わせを、サポート対象のデプロイとして再利用しないでください。

根本原因の詳細分析(コントロールプレーンログ、CloudWatch Logs Insightsクエリ、ノード参加失敗の8つの原因など)は、EKSトラブルシューティングとEKS高度なデバッグにあります。このページはその手前に位置し、30秒以内に次に開くページを決めることを目的としています。内容を重複させず、関連ページへ案内します。

目次 ​

  1. 30秒サマリー: 症状 → 最初のコマンド → 最も一般的な原因
  2. 診断判断ツリー
  3. 症状別プレイブック
  4. kubectl診断チートシート
  5. さらに調べる: 関連ドキュメント
  6. 参考資料

30秒サマリー: 症状 → 最初のコマンド → 最も一般的な原因 ​

各症状のセルから、下にある対応するプレイブック節へ移動できます。

症状(kubectl get pods/nodes の表示)最初のコマンド最も一般的な原因
Pendingkubectl describe pod <pod> → Events内のFailedSchedulingメッセージリソース不足(Insufficient cpu/memory)、toleration不足、nodeSelectorの不一致、未バインドのPVC
ImagePullBackOff / ErrImagePullkubectl describe pod <pod> → Failed to pull imageの行tagの誤記、private registry認証(imagePullSecrets/node IAM)、ECRのregion/account不一致
CrashLoopBackOffkubectl logs <pod> --previous + lastState.terminatedを確認アプリの起動時失敗(exit 1)、OOMKilled(exit 137)、liveness probe失敗、ConfigMap/Secretの不足
RunningだがREADY 0/1kubectl describe pod <pod> → Readiness probe failedreadinessのpath/port誤り、依存先待ち、sidecarがReadyでない
Serviceにリクエストが届かないkubectl get endpointslices -l kubernetes.io/service-name=<svc>selector label不一致、誤ったtargetPort、NetworkPolicyによる遮断、CoreDNS障害
NodeがNotReadykubectl describe node <node> → Conditionskubelet停止/network partition、DiskPressure、MemoryPressure、PIDPressure
PVCがPendingkubectl describe pvc <pvc> → EventsWaitForFirstConsumer(正常な待機)、StorageClassの欠落/誤記、AZ不一致
アプリログのAWS API AccessDeniedkubectl get sa <sa> -o yaml + 注入されたcredential-providerフィールドIRSA(IAM Roles for Service Accounts)のannotation/trust policy誤り、Pod Identity association不足、Pod未再起動
ContainerCreatingで停止 + failed to assign an IP addresskubectl describe pod <pod> → FailedCreatePodSandBoxSubnetのIP枯渇、node max-pods到達、aws-nodeの不健全
Karpenterがnodeを起動しないkubectl get events -A --field-selector reason=FailedSchedulingNodePoolのlimits到達、requirements/taint不一致、instance type制限
Service作成がfailed calling webhookで拒否されるkubectl -n kube-system get endpointslices -l kubernetes.io/service-name=aws-load-balancer-webhook-serviceすべてのnamespaceに一致するfailurePolicy: Fail webhookの背後でWebhook Deploymentが不健全(CrashLoop)

診断判断ツリー ​

ノード割り当て、イメージ取得とセットアップ待ち、繰り返し終了、Pod Ready条件、EndpointSliceとネットワークの診断を区別する判断ツリー。

ノード割り当て、イメージ取得とセットアップ待ち、繰り返し終了、Pod Ready条件、EndpointSliceとネットワークの診断を区別する判断ツリー。全画面で開く ↗

まずcontextとnamespaceを確認します。<pod>や<ns>などのplaceholderは実際の値に置き換えてください。Pod phaseとcontainer stateは異なります。RunningのPodをすべて除外すると、一部のCrashLoopやreadiness失敗を見落とします。このクエリは完了済みPodを除外し、異常なphase、またはReady条件が欠落/falseのPodを含めます。

bash
# Inspect phase and Ready condition together
kubectl get pods -A -o json | jq -r '
  .items[]
  | select(.status.phase != "Succeeded")
  | select(.status.phase != "Running" or
      ([.status.conditions[]? | select(.type == "Ready" and .status == "True")] | length == 0))
  | [.metadata.namespace, .metadata.name, .status.phase,
     ([.status.initContainerStatuses[]?, .status.containerStatuses[]?
       | .state.waiting.reason // empty] | join(","))] | @tsv
'

# Recent Warning events (cluster-wide, sorted by lastTimestamp)
kubectl get events -A --field-selector type=Warning --sort-by=.lastTimestamp | tail -30

症状別プレイブック ​

1. Pendingで停止したPod ​

症状: Pendingには、スケジューリング待ちだけでなくイメージ取得やcontainer setup待ちも含まれます。まず.spec.nodeNameとPodScheduled conditionを確認してください。未バインドPodではスケジューリングイベントを、バインド済みPodではcontainer、mount、CNIの状態を調べます。

診断: 未スケジュールPodではFailedSchedulingを調べます。このメッセージは失敗理由ごとのnode数を集計しており、各理由のグループは重複することがあります。

bash
kubectl describe pod <pod> -n <ns> | sed -n '/^Events:/,$p'
Warning  FailedScheduling  default-scheduler  0/15 nodes are available: 1 Insufficient cpu, 1 Insufficient memory,
  6 node(s) didn't match Pod's node affinity/selector, 8 node(s) had untolerated taint(s).
  no new claims to deallocate, preemption: 0/15 nodes are available:
  1 No preemption victims found for incoming pod, 14 Preemption is not helpful for scheduling.

この概要だけから、CPU不足とmemory不足が同じnodeで起きた、あるいは他のすべての制約を満たすnodeが正確に1台ある、と推定しないでください。schedulerの集計コードは、1つのnodeに複数の失敗理由を数えることがあります。実際のnode label、taint、割り当て状況を確認し、DRAメッセージはResourceClaimの利用状況に照らして解釈してください。

原因と修正:

メッセージ断片原因修正
Insufficient cpu / Insufficient memoryrequestsがnodeの残りcapacityを超過requestsを適正化してautoscalerを確認(→ 10. Karpenter)。kubectl describe nodeのAllocated resourcesも確認
Too many pods設定済みnode max-podsに到達。CNIのIP capacityは別に確認→ 9. ENI/IP枯渇
node(s) had untolerated taint(s)node taintに対するtolerationがないkubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints[*].keyでtaintを列挙し、tolerationを追加するかNodePoolを調整
node(s) didn't match Pod's node affinity/selectornodeSelector/affinityのlabelを持つnodeがないkubectl get nodes --show-labelsを確認。KarpenterではNodePool template labelまたはrequirementsで供給されるwell-known keyと値を確認
pod has unbound immediate PersistentVolumeClaimsPVCがPending→ 7. PVC Pending
node(s) had volume node affinity conflictPV(EBS)が存在するAZにスケジュール可能なnodeがないPVのnodeAffinity zoneを読み、そのAZにcapacityを用意
node(s) didn't match pod topology spread constraints / pod anti-affinity rulesspread制約を満たすnodeがない適切なnodeを追加。topology spreadでは可用性目標を検討した後に限りScheduleAnywayを検討。pod anti-affinityには別個のrequired/preferred規則がある
eventがまったくないscheduler障害、またはschedulerNameの誤記kubectl get pod <pod> -o jsonpath='{.spec.schedulerName}'を確認

2. ImagePullBackOff / ErrImagePull ​

症状: STATUSは最初ErrImagePullとなり、数回のretry後にImagePullBackOffへ変わります。kubeletのpull back-offは最大5分まで増加します。

診断:

bash
kubectl describe pod <pod> -n <ns> | grep -A2 -E "Failed to pull|Back-off pulling"
kubectl get pod <pod> -n <ns> -o jsonpath='{range .spec.containers[*]}{.name}{"\t"}{.image}{"\n"}{end}'
kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.imagePullSecrets}'
Warning  Failed   kubelet  Failed to pull image "123456789012.dkr.ecr.ap-northeast-2.amazonaws.com/app:v1.2.3": ... not found
Warning  Failed   kubelet  Error: ErrImagePull
Normal   BackOff  kubelet  Back-off pulling image "123456789012.dkr.ecr.ap-northeast-2.amazonaws.com/app:v1.2.3"
Warning  Failed   kubelet  Error: ImagePullBackOff

正常なpullではPulling image "..." → Successfully pulled image "..." in 4.501s ...の組が残り、すでにcache済みのimageではContainer image "..." already present on machineと記録されます。pull成功はダウンロード成功を示しますが、image内容、architecture、entrypointの問題を否定するものではありません。

原因と修正:

Failed to pull imageに続く内容原因修正
not found / manifest unknowntagの誤記、未pushのtag、repository誤りaws ecr describe-images --repository-name <repo> --image-ids imageTag=<tag>で確認
401 Unauthorized / no basic auth credentialsprivate registryの認証失敗ECRではnode IAM roleにAmazonEC2ContainerRegistryPullOnly(またはReadOnly)が必要。外部registryではimagePullSecretsを確認
別のECR Region/accountからpullできない異なるaddress自体は誤りとは限らない。cross-account policyとregional endpoint accessを確認pullするprincipalをECR repository policyに追加
dial tcp ... i/o timeoutNAT/VPC endpointのないprivate subnetcom.amazonaws.<region>.ecr.api、ecr.dkr、S3 gateway endpointを確認
toomanyrequestsDocker Hubのrate limitECR pull-through cache経由でmirror

nodeの診断では、まずkubelet event/logと、image pullに使われるcredential providerを確認してください。crictl pullはkubeletのECR credential providerやPodのimagePullSecretsを自動的に再利用しないため、同じ認証経路の再現にはなりません。Fargateのimage pullにはpod execution roleを使い、アプリケーションのIRSA roleとは分けます。

3. CrashLoopBackOff(exit 137 OOMKilled、probe失敗、config誤り) ​

症状: containerが繰り返し終了し、RESTARTSが増えます。通常のback-offは10秒から300秒まで倍増しますが、feature gateやkubelet設定により変わることがあります。restart policyはPod lifecycleを確認してください。

診断: 次の3点を順に確認します: termination reasonとexit code、直前のcontainerのlogs、Events。

bash
# (1) Why did it die: lastState.terminated
kubectl get pod <pod> -n <ns> -o jsonpath='{range .status.containerStatuses[*]}{.name}{"\t"}restarts={.restartCount}{"\t"}reason={.lastState.terminated.reason}{"\t"}exit={.lastState.terminated.exitCode}{"\n"}{end}'

# (2) Logs right before death (the previous container, not the current one)
kubectl logs <pod> -n <ns> -c <container> --previous --tail=100

# (3) Probe/kill events
kubectl describe pod <pod> -n <ns> | sed -n '/^Events:/,$p'

元の文書に記録された、memory limit 128Miのcontainer出力例:

    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      Mon, 31 Aug 2026 08:55:27 +0000
      Finished:     Tue, 01 Sep 2026 21:13:37 +0000
    Restart Count:  3

約36時間稼働したことは、即時の起動失敗と区別する手掛かりですが、memory leakの証明ではありません。memory時系列とkernel/cgroup eventを使い、traffic急増、batch job、node OOM、limit変更も調べてください。

exit codeの読み方:

Exit CodeReason意味修正
0Completedprocessは正常終了。Deploymentではアプリがforegroundで動作し続けていないことを意味する長時間動作するentrypointをforegroundで実行するか、Jobに切り替える
1Errorアプリ自身が終了(config誤り、依存先への接続失敗)stack traceをlogs --previousで確認
126Errorshell entrypointでcommandは見つかったが実行不可。execute bit不足、またはshellがcannot execute binary file: Exec format error(architecture不一致)を報告Dockerfileでchmod +x。kubectl get nodes -L kubernetes.io/archでarm64/amd64を確認し、multi-arch imageを使う
127Errorshell entrypointでcommandが見つからない。pathの誤記、またはbinaryが最終image stageにcopyされていないcommand/argsをimage内の実ファイル(kubectl debug ... -- ls <path>)と照合
137OOMKilledOOMによる終了。container limit超過とnode memory pressureを区別limitを上げるかleakを修正。JVMでは-XX:MaxRAMPercentageを確認 → Resource Optimization
137Error別の理由によるSIGKILL: liveness失敗後、containerがterminationGracePeriodSeconds内に終了しなかったpreStop/graceful shutdownを見直す
143ErrorSIGTERMで終了(通常のrollout/evictionの可能性もある)繰り返す場合、Eventsから終了させた主体を調べる
  • imageがbinaryを直接execする(間にshellがない)場合、architecture不一致でもexit 126にはなりません。containerは起動せず、lastState.terminatedのReasonはStartError、messageはexec format errorになります。対処は同じくmulti-arch image、またはkubernetes.io/archのnodeSelectorです。

Probe失敗: 次のeventはliveness失敗によるrestartを示します。原因はpath/port誤りだけでなく、実際のアプリ障害、過負荷、deadlockの場合もあります。probeを緩める前にresponseとアプリケーションを調べてください。

Warning  Unhealthy  kubelet  Liveness probe failed: HTTP probe failed with statuscode: 503
Normal   Killing    kubelet  Container app failed liveness probe, will be restarted
  • アプリの起動が遅い場合、livenessのinitialDelaySecondsを増やすのではなくstartupProbeを追加します(startup probeが成功するまでlivenessは開始されません)。
  • Readiness probe failed: dial tcp 10.0.2.45:8080: connect: connection refusedのようなTCP拒否では、まずcontainer portとprobe portが異ならないか確認してください。

Configuration referenceの誤り: 厳密にはcrash loopではありません。PodはCreateContainerConfigErrorで停止します。

Warning  Failed  kubelet  Error: configmap "app-config" not found
Warning  Failed  kubelet  Error: secret "db-credentials" not found

kubectl get cm,secret -n <ns>でnameとnamespaceを照合します。referenceがvolume mountの場合は、代わりにFailedMount event(MountVolume.SetUp failed for volume "cfg" : configmap "app-config" not found)として表示されます。

4. RunningだがReadyでない / Endpointsが空 ​

症状: STATUSはRunningでもREADYは0/1(sidecarがあると1/2)です。通常のService routingではnot-ready endpointを除外します。publishNotReadyAddresses、terminating endpoint、LB fail-openなどの例外は別途確認してください。proxyに応じて、clientにはerrorやtimeoutが見える場合があります。

診断:

bash
kubectl describe pod <pod> -n <ns> | grep -E "Ready|Readiness probe"
kubectl get endpointslices -n <ns> -l kubernetes.io/service-name=<svc>

EndpointSliceのaddressとreadinessは別です。 一致するnot-ready Podもaddressとready: falseを持って表示されることがあります。ENDPOINTS欄だけからreadinessを推測せず、ready、serving、terminatingを調べてください。

bash
kubectl get endpointslices -n <ns> -l kubernetes.io/service-name=<svc> -o json | jq -r '
  .items[] as $slice | $slice.endpoints[]?
  | [$slice.metadata.name, (.addresses | join(",")), (.conditions | tojson)] | @tsv
'

readyが未設定なら状態はunknownであり、consumer側ではreadyとして扱う必要があります。publishNotReadyAddresses: trueはreadinessによるfilteringを変更します。proxyはtermination中のserving endpointも処理できます。selectorのないServiceでは手動管理のEndpointSliceを確認します。v1 Endpoints APIはKubernetes 1.33以降deprecatedです。新しい診断にはEndpointSliceを使ってください。

原因と修正:

観測結果原因修正
EventsにReadiness probe failedが繰り返し出るprobe path/port誤り、またはアプリが依存先(DBなど)を待っているprobeをアプリの実health endpointに向ける。依存先待ちはlivenessではなくreadinessで扱う
ReadinessGatesNotReady reasonでCondition Ready FalsePod readiness gateを待機中。通常はAWS Load Balancer Controllerのtarget-health.elbv2.k8s.aws/* gateTarget Group health checkが失敗する理由を調べる → AWS Load Balancer Controller
1/2 RunningでアプリcontainerだけReadysidecar(istio-proxyなど)がReadyでない、またはアプリ後にsidecarが起動して初期connectionに失敗sidecar logsを確認し、injector/versionがサポートする起動順序とreadinessを確認。native-sidecar化だけではreadinessは解決しない
ReadyなのにEndpointSliceが空Service selectorがPod labelに一致しない→ 5. Service unreachable

5. Serviceに到達できない ​

症状: containerは1/1 Runningですが、curl http://<svc>.<ns>.svc.cluster.localがtimeoutまたはconnection refusedになる、あるいはname resolutionに失敗します。

診断は3層に分けます: (a) Service → Podのmapping、(b) network policy、(c) DNS。

bash
# (a) Compare the selector with actual labels
kubectl get svc <svc> -n <ns> -o jsonpath='{.spec.selector}{"\n"}{.spec.ports}{"\n"}'
kubectl get pods -n <ns> -l <key>=<value> -o wide
kubectl get endpointslices -n <ns> -l kubernetes.io/service-name=<svc>

# (b) NetworkPolicies applied to the namespace
kubectl get networkpolicies -n <ns>
kubectl describe networkpolicy <policy> -n <ns>

# (c) CoreDNS status and logs
kubectl get pods -n kube-system -l k8s-app=kube-dns
kubectl logs -n kube-system -l k8s-app=kube-dns --tail=50
kubectl get cm -n kube-system coredns -o jsonpath='{.data.Corefile}'

原因と修正:

観測結果原因修正
selectorが{"app":"api"}だがPod labelがapp=api-serverlabel不一致でEndpointSliceが空labelとselectorを統一。Helm chartではselectorLabelsとpodLabelsがずれることがよくある
EndpointSliceにIPがあるのにconnection refusedtargetPortがcontainerの実待受portと異なるkubectl get pod <pod> -n <ns> -o jsonpath='{.spec.containers[*].ports}'と照合。アプリが127.0.0.1だけにbindする場合も同じ症状
特定namespaceからだけ失敗default-deny NetworkPolicyがありingress allow ruleがないpodSelector/namespaceSelectorを確認。VPC CNI network policyではkubectl get policyendpoints -n <ns>で実際のenforcementを確認 → Network Policies
nslookup <svc>がNXDOMAINを返す別namespaceからshort nameを使った、またはCoreDNS障害FQDN(<svc>.<ns>.svc.cluster.local)を使う。CoreDNS PodがRunningで、/etc/resolv.confのnameserverがkube-dns ClusterIP(このclusterでは172.20.0.10)か確認
外部domainの解決が遅いdefaultのndots:5では、dotが5個未満のnameはabsolute nameとしてqueryする前に各search domain(<ns>.svc.cluster.local、svc.cluster.local、cluster.local、nodeのVPC domain)で試される外部nameの末尾に.を付けるか、nameがndots、string値が"2"のdnsConfig.options entryを検討
NodePort/LBが一部node経由だけで動作そのnodeにPodがないexternalTrafficPolicy: Local意図された動作。client IP保持とnode間trafficを確認した後でのみClusterを検討

Pod視点のDNSを再現するには、使い捨てPodを起動します: kubectl run -it --rm dns-test --image=busybox:1.36 --restart=Never -- nslookup kubernetes.default.svc.cluster.local。CoreDNSの概念とCorefileはServices and Networkingを参照してください。

宛先側ingressと送信元側egressのNetworkPolicyを両方確認します。containerPortを宣言しても待受socketは作られません。アプリlogsまたはsocket状態を調べてください。NodeLocal DNSCacheを使う場合、resolv.confのnameserverがkube-dns ClusterIP以外でも正常なことがあります。

Auto ModeのDNS: 現在のAuto ModeではCoreDNSはnode system serviceとして動作します。Auto Modeのみのclusterでkube-dns Pod/Serviceがないことだけでは障害を意味しません。混在clusterでは通常node用のCoreDNS Deploymentが必要です。上記Pod/ConfigMapコマンドはDeployment型DNSを調べます。Auto Modeでは実際のPod name resolution、node DNS logs、upstream resolverへの到達性を確認してください。

6. Node NotReady / kubelet pressure(DiskPressure、MemoryPressure、PIDPressure) ​

症状: kubectl get nodesでNotReadyになるか、nodeがReadyでもPodがEvictedになる、または新しいPodがnode(s) had untolerated taint(s)で避けられます。

診断:

bash
# One-line summary of node conditions
kubectl get nodes -o custom-columns='NAME:.metadata.name,READY:.status.conditions[?(@.type=="Ready")].status,MEM:.status.conditions[?(@.type=="MemoryPressure")].status,DISK:.status.conditions[?(@.type=="DiskPressure")].status,PID:.status.conditions[?(@.type=="PIDPressure")].status'

# Conditions with their reason
kubectl get node <node> -o jsonpath='{range .status.conditions[*]}{.type}{"="}{.status}{" ("}{.reason}{")\n"}{end}'

# Taints the node picked up automatically
kubectl get node <node> -o jsonpath='{.spec.taints}'

健全なnodeの出力です(EKS Node Monitoring Agentが入っていればContainerRuntimeReady/NetworkingReady/KernelReady/StorageReady conditionsも表示されます)。

MemoryPressure=False (KubeletHasSufficientMemory)
DiskPressure=False (KubeletHasNoDiskPressure)
PIDPressure=False (KubeletHasSufficientPID)
Ready=True (KubeletReady)
ContainerRuntimeReady=True (ContainerRuntimeIsReady)
NetworkingReady=True (NetworkingIsReady)
KernelReady=True (KernelIsReady)
StorageReady=True (DiskIsReady)

原因と修正:

Condition / reason自動taint原因修正
Ready=Unknown(NodeStatusUnknown、「Kubelet stopped posting node status.」)node.kubernetes.io/unreachablekubelet process停止、instance停止/network partition、API server認証失敗EC2 instance stateを確認。nodeが応答するならサポートされたlog取得方法を使う。kubelet停止中はdebug Podを起動できない場合がある
Ready=Falsenode.kubernetes.io/not-readycontainer runtime停止、CNI未初期化(aws-node不健全)該当nodeのaws-nodeはkubectl get pods -n kube-system -l k8s-app=aws-node -o wideで確認
DiskPressure=True(KubeletHasDiskPressure)node.kubernetes.io/disk-pressureimage cache/container logがroot volumeを満たしたcrictl rmi --prune、log rotation、root EBS拡張。PodはThe node was low on resource: ephemeral-storageでEvictedされる
MemoryPressure=True(KubeletHasInsufficientMemory)node.kubernetes.io/memory-pressure実使用量がreservationを超過、またはsystem reservation不足。requestのないlimitは、そのlimitをrequestのdefaultにする場合があるrequestsを強制(LimitRange)し、kube-reserved/system-reservedを確認
PIDPressure=True(KubeletHasInsufficientPID)node.kubernetes.io/pid-pressurefork storm(thread leak)問題のPodを特定してrestartし、podPidsLimitを設定

以下は特権debug Podを作成し、host shell、journalctl、crictlを使える一般的なLinux workerを前提とします。immutableなBottlerocket/EKS Auto Mode hostで同じchroot手順が使えるとは限りません。Auto Mode troubleshootingにあるdebug-containerとconsole-logの手順を使ってください。

bash
kubectl debug node/<node> -it --image=busybox --profile=sysadmin -- chroot /host
# once inside
journalctl -u kubelet --since "10 min ago" | tail -50
df -h /var/lib/containerd
crictl ps -a | head

kubectl get nodesに一度も表示されないnode(join failure: IAM role/access entry、subnet routing、security group、AMI mismatch)は別の問題です → EKS高度なデバッグ: Node Join Failure Diagnosis、EKSトラブルシューティング: Node and Pod Issues。Karpenter nodeではsection 10のNodeClaim確認から始めます。

7. PVCがPendingで停止 ​

症状: kubectl get pvcはPendingを示し、それを使うPodもpod has unbound immediate PersistentVolumeClaimsでPendingです。

診断:

bash
kubectl get pvc -n <ns>
kubectl describe pvc <pvc> -n <ns> | sed -n '/^Events:/,$p'
kubectl get storageclass
kubectl get pods -n kube-system -l app=ebs-csi-node -o wide     # is the CSI node plugin on that node?
NAME   PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
gp2    kubernetes.io/aws-ebs   Delete          WaitForFirstConsumer   false                  145d
gp3    ebs.csi.aws.com         Delete          WaitForFirstConsumer   true                   76d

StorageClass一覧は環境例です。Auto Modeのebs.csi.eks.amazonaws.comと、別途導入するebs.csi.aws.com driverを区別してください。Auto Modeで通常のebs-csi-node DaemonSetがないことだけでは障害と判断できません。明示的なstorageClassName: ""はdefault classを使わない指定であり、field自体を省略する場合とは異なります。

原因と修正: describe pvcのEvents messageが診断になります。

Events message原因修正
WaitForFirstConsumer: waiting for first consumer to be created before binding正常。 volumeBindingMode: WaitForFirstConsumerはPodがscheduleされるまでvolume作成を遅らせる使用PodがまだなくPendingならそのまま待つ。PodもPendingならPodのFailedSchedulingを読む
FailedBinding: no persistent volumes available for this claim and no storage class is setstorageClassNameがなくdefault StorageClassもないPVCにstorageClassName: gp3を設定するか、SCにstorageclass.kubernetes.io/is-default-class: "true"をannotation
ProvisioningFailed: storageclass.storage.k8s.io "<name>" not foundStorageClassの誤記、別clusterからmanifestをcopykubectl get scで実際のnameを確認
ProvisioningFailed: error generating accessibility requirements: no topology key found for node <node>Podが配置されたnodeにEBS CSI node pluginが登録されていない(CSINodeにdriverがない)kubectl get csinode <node>のDRIVERS列を確認し、ebs-csi-node DaemonSetがそのnodeで実行中か確認
ProvisioningFailed + UnauthorizedOperation/AccessDeniedEBS CSI controllerのIRSA/Pod Identityにpermission不足→ 8. IRSA/Pod Identity(subjectはebs-csi-controller-sa)
Pod側のnode(s) had volume node affinity conflict既存PV(EBS)がAZ ap-northeast-2aにあり、schedule可能なnodeは別AZEBSはAZをまたげません。kubectl get pv <pv> -o jsonpath='{.spec.nodeAffinity}'でzoneを調べ、そこにcapacityを用意(NodePool zone requirementまたはnodeSelector)
Pod側のFailedAttachVolume: Multi-Attach error for volumeRWO volumeが前のnodeにattachされたまま(node障害後にStatefulSetが再schedule)kubectl get volumeattachmentsでstale attachmentを調べる。nodeを失った場合はcleanupを数分待つ

WaitForFirstConsumer、StorageClass、dynamic provisioningはStorage、EBS/EFS CSIのerror patternはEKS高度なデバッグ: Storage Troubleshootingを参照してください。

8. EKS: IRSA / Pod IdentityのAccessDenied ​

症状: PodはRunningですが、アプリlogsにAWS SDK errorが出ます。

An error occurred (AccessDenied) when calling the AssumeRoleWithWebIdentity operation:
  Not authorized to perform sts:AssumeRoleWithWebIdentity

またはS3/DynamoDB callが... is not authorized to perform: s3:GetObjectで拒否され、拒否principalがservice account roleではなくnode IAM role(assumed-role/<node-role>/i-0abc...)になっています。これはSDKがnode credentialsを選んだことを示します。IMDS accessが遮断されている場合、node roleへのfallbackは利用できません。credential injection、SDK version、provider precedence、明示credentialsを確認してください。

診断: まず使用中のmechanismを特定します。Podのenvironment variableから確認できます。

bash
# Service account annotation (IRSA)
kubectl get sa <sa> -n <ns> -o jsonpath='{.metadata.annotations.eks\.amazonaws\.com/role-arn}{"\n"}'

# Credential-related env injected into the pod
kubectl get pod <pod> -n <ns> -o json | jq -r '
  (.spec.initContainers[]?, .spec.containers[]?) as $container
  | $container.env[]?
  | select(.name == "AWS_ROLE_ARN" or .name == "AWS_WEB_IDENTITY_TOKEN_FILE"
        or .name == "AWS_CONTAINER_CREDENTIALS_FULL_URI"
        or .name == "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE")
  | [$container.name, .name, (.value // "valueFrom")] | @tsv
'
注入されたenvMechanism意味
AWS_ROLE_ARN=arn:aws:iam::...:role/<role> + AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/tokenIRSApod-identity-webhookが注入。なければSA annotationがPod作成後に追加されたか、SA nameが異なる
AWS_CONTAINER_CREDENTIALS_FULL_URI + AWS_CONTAINER_AUTHORIZATION_TOKEN_FILEEKS Pod Identityeks-pod-identity-agentが169.254.170.23でcredentialsを提供。associationがある場合だけ注入
どちらもない別providerまたはcredentialsなし下の表を参照
bash
# Pod Identity: agent and association
kubectl get pods -n kube-system -l app.kubernetes.io/name=eks-pod-identity-agent
aws eks list-pod-identity-associations --cluster-name <cluster> --namespace <ns> --service-account <sa>

# IRSA: OIDC condition in the trust policy
aws eks describe-cluster --name <cluster> --query 'cluster.identity.oidc.issuer' --output text
aws iam get-role --role-name <role> --query 'Role.AssumeRolePolicyDocument'

原因と修正:

観測結果原因修正
envがないがSA annotationはある作成順序、実際のserviceAccountName、またはwebhook injection設定設定を確認・修正し、影響を考慮して正しいnamespaceでPodを作り直す
envもassociationもないPod Identity associationがない、または別のSA/namespace用に作成されたaws eks create-pod-identity-association ...を実行し、その後Podを再起動
Not authorized to perform sts:AssumeRoleWithWebIdentityIRSA trust policy: Federated OIDC provider ARN誤り、またはsub(system:serviceaccount:<ns>:<sa>)/aud(sts.amazonaws.com)condition不一致trust policyを修正。clusterを再作成してOIDC issuerが変わった場合はproviderも再作成
Pod IdentityだがAssumeRoleが拒否trust policy principalがpods.eks.amazonaws.comではない、またはsts:TagSession不足trust policyでsts:AssumeRoleとsts:TagSessionの両方を許可
envは正常だが特定APIだけAccessDeniedidentity/resource policy、SCP、boundary、sessionまたはVPC endpoint policyによる拒否呼び出し元とresource、明示的Denyを確認。関連するCloudTrail data eventにはlogging設定が必要な場合がある
Pod Identity envはあるがSDKがUnable to locate credentialsと表示SDKが古くcontainer credential provider(FULL_URI)をサポートしないSDKをupgrade。最低対応versionはEKS docsを参照

IRSAとPod Identityの仕組み・設定はEKS Security Best PracticesおよびEKS Security、token expiryとwebhook問題はEKS高度なデバッグ: Control Plane Debuggingを参照してください。

9. EKS: ENI/VPC CNIのIP枯渇 ​

症状: PodがEventsのFailedCreatePodSandBoxとともにContainerCreatingで停止します:

Warning  FailedCreatePodSandBox  kubelet  Failed to create pod sandbox: rpc error: code = Unknown desc =
  failed to setup network for sandbox "...": plugin type="aws-cni" name="aws-cni" failed (add):
  add cmd: failed to assign an IP address to container

スケジューリング時のToo many podsはkubeletのPod数上限に達したことを示します。IP capacityに関係する場合はありますが、IP枯渇の証明ではありません。CNIのFailedCreatePodSandBoxはnode割り当て後に発生します。

診断:

bash
# Read the actual pod ceiling; distinguish secondary-IP defaults from prefix/custom networking configuration
kubectl get node <node> -o jsonpath='{.status.allocatable.pods}{"\n"}'
kubectl get pods -A --field-selector spec.nodeName=<node>,status.phase!=Succeeded,status.phase!=Failed --no-headers | wc -l

# aws-node status and IPAM settings
kubectl get pods -n kube-system -l k8s-app=aws-node -o wide
kubectl get ds -n kube-system aws-node -o jsonpath='{range .spec.template.spec.containers[?(@.name=="aws-node")].env[*]}{.name}={.value}{"\n"}{end}' | grep -E "PREFIX|WARM|MINIMUM|CUSTOM_NETWORK"

# Free IPs in the subnet
aws ec2 describe-subnets --subnet-ids <subnet-id> --query 'Subnets[].{id:SubnetId,az:AvailabilityZone,free:AvailableIpAddressCount}' --output table

IPv4 secondary-IP modeでは、未使用ENI capacityのdefault targetはWARM_ENI_TARGET=1です。各ENIはprimary IPも1つ消費します。m5.xlargeではENIごとにIPv4 addressが15個あり、そのうち通常のPod用secondary addressは14個です。正のWARM_IP_TARGET/MINIMUM_IP_TARGET値はwarm-ENI規則に優先します。warm=3、minimum=6の場合、使用IPが1個なら合計6個を目標にして5個を余分に確保し、使用IPが5個なら合計8個を目標にして3個を余分に確保します。余剰capacityが常にちょうど3個とは限りません。IPAM reconciliation、ENI上限、prefix割当粒度が実数に影響します。

原因と修正:

観測結果原因修正
SubnetのAvailableIpAddressCountが一桁warm poolがIPを事前確保し、subnet自体が枯渇上記設定のようにWARM_IP_TARGET/MINIMUM_IP_TARGETでwarm poolを縮小し、custom networking(ENIConfig)でsecondary CIDR(例: 100.64.0.0/16)を追加。長期的にはIPv6も検討
node上のPod数 = allocatable Pod数設定済みPod数上限。IP capacityは別途確認対応version/instanceと連続した/28 block、subnet capacityを確認してからprefix delegation(ENABLE_PREFIX_DELEGATION=true)を検討し、max-podsを再計算。または大きいinstanceを使う
該当nodeのaws-nodeがCrashLoopBackOffCNI自体の障害(AmazonEKS_CNI_Policy不足、version不一致)kubectl logs -n kube-system <aws-node-pod> -c aws-nodeとnode上の/var/log/aws-routed-eni/ipamd.logを確認
Security Groups for Podsを使いvpc.amazonaws.com/pod-eniが不足Branch ENI上限trunk ENI対応instanceへ移行し、ENABLE_POD_ENI=trueを確認

IPAM動作(warm pool、prefix delegation、custom networking)はVPC CNI: IP Address Management、段階的なIP枯渇対処はEKS高度なデバッグ: Networking DiagnosticsとEKSトラブルシューティング: VPC CNI Issuesを参照してください。

10. EKS: Karpenterがnodeを起動しない ​

症状: PodがPendingで、新しいNodeClaimがkubectl get nodeclaimsに現れません。default schedulerのFailedSchedulingとは別に、Karpenterも同じPodに自身の理由をeventとして記録します。

診断:

bash
# Events emitted by Karpenter (source is karpenter)
kubectl get events -n <ns> --field-selector involvedObject.name=<pod> -o custom-columns=REASON:.reason,SRC:.source.component,MSG:.message

# NodePool limits vs current usage
kubectl get nodepool -o custom-columns='NAME:.metadata.name,CPU_LIMIT:.spec.limits.cpu,CPU_USED:.status.resources.cpu,MEM_LIMIT:.spec.limits.memory,MEM_USED:.status.resources.memory,READY:.status.conditions[?(@.type=="Ready")].status'

# NodeClaim progress
kubectl get nodeclaims -o custom-columns='NAME:.metadata.name,TYPE:.metadata.labels.node\.kubernetes\.io/instance-type,LAUNCHED:.status.conditions[?(@.type=="Launched")].status,REGISTERED:.status.conditions[?(@.type=="Registered")].status,READY:.status.conditions[?(@.type=="Ready")].status'

kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter --tail=100

元の文書に記録された、拒否されたNodePoolを列挙するKarpenter event:

FailedScheduling  karpenter  Failed to schedule pod, incompatible with nodepool "system",
  daemonset overhead={"cpu":"821m","memory":"1350Mi","pods":"10"}, incompatible requirements,
  label "nvidia.com/device-plugin.config" does not have known values;
  incompatible with nodepool "runner-arm", ..., did not tolerate workload-type=ci-runner:NoSchedule;
  all available instance types exceed limits for nodepool "graviton";
  incompatible with nodepool "gpu-ner", ..., incompatible requirements, key node.kubernetes.io/instance-type,
  node.kubernetes.io/instance-type In [g6e.4xlarge] not in node.kubernetes.io/instance-type In [g6.2xlarge g6.4xlarge g6.xlarge]

記録例ではCPU_LIMITが8、CPU_USEDが8ですが、exceed limitsは現使用量が上限と同じ場合に限りません。候補instanceのすべてが残りheadroomを超えれば、上限未満でも発生します。Nominatedはscheduler上のnominationであり、完了を意味しません。NodeClaimのLaunched、Registered、Initialized、Readyと、実際のPod割り当てを確認してください。

原因と修正:

メッセージ断片原因修正
all available instance types exceed limits for nodepool "<np>"候補instanceを追加するとNodePool limitsを超えるlimitを上げるか、consolidationがidle nodeを回収できているか確認
label "<key>" does not have known values要求されたcustom labelの値がNodePool template label/requirementsで供給されないNodePoolのspec.template.spec.requirementsに値の一覧とともにkeyを追加
did not tolerate <key>=<value>:NoScheduleNodePool taintsに対するtolerationがないisolationが意図的なら別NodePoolを使い、それ以外はtolerationを追加
key node.kubernetes.io/instance-type, ... In [X] not in ... In [Y Z]PodがNodePoolで許可されていないinstance typeを要求どちらかを揃える。通常、Pod側のrequirementが狭すぎる
大きなdaemonset overhead={...}とInsufficientDaemonSet reservationを差し引いた後のcapacity不足requirementsに大きいinstanceを含める
NodeClaim LAUNCHED=True, REGISTERED=Falseが数分続くEC2は起動したがnodeが参加できない(EC2NodeClassのsubnet/SG selector、node IAM role access entry、AMI)kubectl describe nodeclaim <name>のConditions/EventsとEC2 console system logを確認
Karpenter logにInsufficientInstanceCapacityそのAZ/instance typeでEC2 capacity不足(ICE: Insufficient Capacity Error)instance type、AZ、capacity-type(spot/on-demand)を広げる
eventがなくKarpenter logも静かPodがKarpenter候補でない(nodeSelectorがMNG labelを指定、またはKarpenterと無関係なschedule制約)Pod specのnode関連制約をすべて再確認

NodePool/EC2NodeClassの構造と詳細なtroubleshootingはKarpenter: TroubleshootingとEKS高度なデバッグ: Karpenter Provisioning Issuesを参照してください。

11. Serviceを作成できない: failed calling webhook ​

症状: load balancerと無関係なnamespaceも含め、どのnamespaceからのService kubectl apply/createもAPI serverに拒否されます。Serviceを含むDeployment、Helm install、ArgoCD syncはその箇所で止まります。一方で既存Serviceは動作し続けるため、Pod側には異常が見えません。

Internal error occurred: failed calling webhook "mservice.elbv2.k8s.aws": failed to call webhook:
  ... no endpoints available for service "aws-load-balancer-webhook-service"

診断: error messageはwebhookと、その背後にあるServiceを示しています。webhook configuration → webhook Serviceのendpoint → その背後のDeploymentの順に追ってください。

bash
# (1) Which webhooks are registered, and what each does on failure (rules, namespaceSelector, objectSelector, failurePolicy)
kubectl get mutatingwebhookconfigurations,validatingwebhookconfigurations
kubectl get mutatingwebhookconfiguration aws-load-balancer-webhook -o jsonpath='{range .webhooks[*]}{.name}{"\t"}failurePolicy={.failurePolicy}{"\t"}ns={.namespaceSelector}{"\t"}obj={.objectSelector}{"\t"}{.rules[*].operations}{" "}{.rules[*].resources}{"\n"}{end}'

# (2) Is there a Ready pod behind the webhook Service?
kubectl -n kube-system get endpointslices -l kubernetes.io/service-name=aws-load-balancer-webhook-service

# (3) Why does that Deployment keep dying?
kubectl -n kube-system get pods -l app.kubernetes.io/name=aws-load-balancer-controller
kubectl -n kube-system logs deploy/aws-load-balancer-controller --previous

元の文書には2026年9月2日のLBC v3.2.1の繰り返しrestartと下記logが記録されています。このレビューでは、過去のrestart回数や継続時間を独立検証していません。実行可能な根拠は、導入済みCRDとcontrollerが要求するAPI versionの不一致です。

{"ts":"2026-09-02T07:54:42Z","logger":"setup","msg":"Disabling NLBGatewayAPI: missing required Gateway API CRDs","missing":["TLSRoute","TCPRoute","UDPRoute"]}
{"level":"error","logger":"controller-runtime.source.Kind","msg":"if kind is a CRD, it should be installed before calling Start","kind":"ListenerSet.gateway.networking.k8s.io","error":"no matches for kind \"ListenerSet\" in version \"gateway.networking.k8s.io/v1\""}
{"ts":"2026-09-02T07:57:00Z","level":"error","logger":"setup","msg":"problem running manager","error":"failed to wait for gateway.k8s.aws/alb caches to sync kind source: *v1.ListenerSet: timed out waiting for cache to be synced for Kind *v1.ListenerSet"}

このlogはListenerSet.gateway.networking.k8s.io/v1が見つからず、cache同期が失敗していることを示します。Gateway API 1.5.0のstandard channelにはListenerSetが含まれます。 version要件、standard CRD、LBC固有CRDをLBC v3.2.1 guideで確認してください。TCPRoute/UDPRouteなど追加APIが必要ならexperimental導入要件を確認します。影響は実際のwebhook rule、selector、failurePolicyによって異なります。target更新や新規resourceのreconcileが損なわれても、既存LBのdata pathは継続する場合があります。

原因と修正:

観測結果原因修正
no endpoints available for service "aws-load-balancer-webhook-service"webhook DeploymentにReady Podがない(CrashLoop、schedule不可、replica 0)まずcontrollerを正常化(次の行)。EndpointSliceのaddressとready conditionを確認し、実際のwebhook requestを試す
logにno matches for kind "ListenerSet" → timed out waiting for cache to be syncedcontroller versionが必要とするGateway API CRDがない(a) controller versionが必要とするGateway API CRDを導入(ListenerSetはGateway API 1.5.0のstandard channelに含まれる)、(b) CRD導入までHelm feature-gate valueでGateway API機能を無効化(正確なgate名はそのversionのvalues.yamlで確認)、(c) 導入済みCRDに合うcontroller versionをpin
endpointはあるがconnection refused / context deadline exceeded / x509webhook portへの経路が遮断(NetworkPolicy/security group)、証明書期限切れまたは不一致API server → Pod webhook portの経路、clientConfig.caBundle、証明書更新を確認
今すぐServiceを作る必要がある—影響範囲を理解した緊急措置としてのみ: mservice.elbv2.k8s.awsのfailurePolicyをIgnoreへpatch。この間に作成したServiceにはcontrollerのmutation(default loadBalancerClassの注入)が行われません。復旧後にFailへ戻し、その間に作成されたServiceをレビューしてください

やってはいけないこと: objectSelectorを回避するためServiceにapp.kubernetes.io/name=aws-load-balancer-controller labelを付けないでください。webhookは通過しますが、そのServiceにはmutationが適用されず、labelも実態と異なります。このselectorはcontroller自身のServiceを作成できるようにするためだけのものです。

未使用のGateway API機能を一時停止する場合、既存設定とマージしたv3.2.1 chart valueを用意してHelm diffをレビューしてください。まず既存Gateway resourceがそれらのcontrollerに依存するか確認します。

yaml
controllerConfig:
  featureGates:
    ALBGatewayAPI: false
    NLBGatewayAPI: false

予防: webhook Deploymentのavailable replica数とCrashLoop状態を監視してください。例として、kube-state-metricsの次のexpressionに5分のholdを設定します。

promql
kube_deployment_status_replicas_available{
  namespace="kube-system", deployment="aws-load-balancer-controller"
} < 1

metricがない場合、このexpressionもseriesを返しません。別途absent_over_time(...[5m])またはscrape失敗を監視します。DeploymentのavailableはService selector、証明書、network pathの正常性を保証しません。EndpointSlice conditionとwebhook経路も確認してください。replicaをAZに分散しPDBを使うとnode障害には役立ちますが、全replica共通の設定誤りは防げません。

元のPod Network BenchmarkではClusterIP測定を除外しています。これは記録済みbenchmarkの制約のままです。このレビューではincidentを再現していません。


kubectl診断チートシート ​

resourceの確認とdebug actionを分けてください。get/describe/logs/topはresourceを調べますが、kubectl debugとkubectl runはcontainerまたはPodを作成します。debug Podのlabelが誤ってService selectorに一致しないようにし、使用後はdebug Podを削除してください。ephemeral containerは元のPodに記録されたままです。

bash
# ── Status scan ────────────────────────────────────────────────────────
# Unhealthy pods only
kubectl get pods -A -o json | jq -r '
  .items[]
  | select(.status.phase != "Succeeded")
  | select(.status.phase != "Running" or
      ([.status.conditions[]? | select(.type == "Ready" and .status == "True")] | length == 0))
  | [.metadata.namespace, .metadata.name, .status.phase,
     ([.status.initContainerStatuses[]?, .status.containerStatuses[]?
       | .state.waiting.reason // empty] | join(","))] | @tsv
'
# Restart counts ascending, so the 15 worst pods come LAST (after tail) + last termination reason.
# Reads the first container only ([0]); for multi-container pods check the others separately.
kubectl get pods -A --sort-by='.status.containerStatuses[0].restartCount' \
  -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,RESTARTS:.status.containerStatuses[0].restartCount,REASON:.status.containerStatuses[0].lastState.terminated.reason' | tail -15
# Pods on a given node
kubectl get pods -A --field-selector spec.nodeName=<node> -o wide
# Node conditions + zone + instance type
kubectl get nodes -o custom-columns='NAME:.metadata.name,READY:.status.conditions[?(@.type=="Ready")].status,DISK:.status.conditions[?(@.type=="DiskPressure")].status,MEM:.status.conditions[?(@.type=="MemoryPressure")].status,ZONE:.metadata.labels.topology\.kubernetes\.io/zone,TYPE:.metadata.labels.node\.kubernetes\.io/instance-type'

# ── Events ─────────────────────────────────────────────────────────────
kubectl get events -A --field-selector type=Warning --sort-by=.lastTimestamp | tail -30
kubectl get events -n <ns> --field-selector involvedObject.name=<pod>,reason=FailedScheduling
kubectl events -n <ns> --for pod/<pod> --watch          # follow one object live
kubectl events -A --types=Warning                       # kubectl events subcommand (1.26+)

# ── jsonpath for exactly the fields you need ──────────────────────────
kubectl get pod <pod> -o jsonpath='{.status.containerStatuses[*].lastState.terminated}'
kubectl get pod <pod> -o jsonpath='{range .spec.containers[*]}{.name}{": "}{.resources}{"\n"}{end}'
kubectl get svc <svc> -o jsonpath='{.spec.selector}'
kubectl get sa <sa> -o jsonpath='{.metadata.annotations.eks\.amazonaws\.com/role-arn}'
kubectl get pv <pv> -o jsonpath='{.spec.nodeAffinity.required.nodeSelectorTerms[0].matchExpressions}'

# ── Logs ───────────────────────────────────────────────────────────────
kubectl logs <pod> -c <container> --previous --tail=100   # logs of the dead container
kubectl logs -n kube-system -l k8s-app=kube-dns --tail=50  # several pods by label
kubectl logs deploy/<name> --all-containers --since=10m

# ── Debug containers ───────────────────────────────────────────────────
# Attach an ephemeral container (target process namespace requires runtime support)
kubectl debug -it <pod> --image=nicolaka/netshoot --target=<container>
# Copy with an approved shell-capable debug-image; review copied labels and volume access
kubectl debug <pod> -it --copy-to=<pod>-debug --container=<container> --set-image=<container>=<debug-image> -- sh
# Node shell without SSH. --profile=sysadmin is a privileged container
kubectl debug node/<node> -it --image=busybox --profile=sysadmin -- chroot /host

# ── Resource usage (requires metrics-server) ───────────────────────────
kubectl top nodes
kubectl top pods -n <ns> --sort-by=memory
# Without metrics-server: "error: Metrics API not available"

# ── Schema lookup ──────────────────────────────────────────────────────
kubectl explain pod.status.containerStatuses.lastState.terminated
kubectl explain nodepool.spec.limits        # works for CRDs too
kubectl api-resources | grep -E "karpenter|k8s.aws"

# ── Rollouts ───────────────────────────────────────────────────────────
kubectl rollout status deploy/<name> -n <ns>
kubectl rollout history deploy/<name> -n <ns>

kubectl debugで有効な--profile値はlegacy、general、baseline、restricted、netadmin、sysadminです(defaultはkubectl versionによりlegacyまたはgeneral。kubectl debug --helpを確認)。restricted policy下では互換性のあるimage/security contextと--profile=restrictedを使いますが、他のadmission policyで拒否される場合もあります。特権node debugには別途認可が必要です。


さらに調べる: 関連ドキュメント ​

このプレイブックは「次にどこへ進むか」を決める入口です。原因を絞り込んだら、以下のドキュメントへ進んでください。

絞り込んだ領域概念ドキュメント詳細なtroubleshooting
Pod lifecycle、probe、restart policyPods and WorkloadsEKS高度なデバッグ: Workload Debugging
Service、EndpointSlice、CoreDNS、NetworkPolicyServices and Networking、Network PoliciesEKSトラブルシューティング: Networking Issues
PV/PVC/StorageClass、EBS CSIStorageEKSトラブルシューティング: Storage Issues
Node参加、kubelet、resource pressureCluster ArchitectureEKSトラブルシューティング: Node and Pod Issues
Karpenter NodePool/NodeClaimKarpenterScaling Strategies
VPC CNI IPAM、prefix delegation、custom networkingVPC CNIEKS Networking Part 3: Troubleshooting
IRSA、Pod Identity、RBACEKS Security Best Practices、Kubernetes Authentication and AuthorizationEKSトラブルシューティング: IAM and Authentication Issues
logの場所と調べ方Logging OverviewObservability Analysis
requests/limits、OOM、JVM memoryResource OptimizationEKSトラブルシューティング: Performance Issues
Incident responseの流れ、severity、最初の5分のchecklist—EKS高度なデバッグ: Incident Response Framework

参考資料 ​

このページの引用文字列と経験則を裏付ける公式資料です。

Kubernetes

Amazon EKS / AWS


< 前へ: Zonal Cluster Operations | 目次 >

ドキュメントに質問する

Enter で送信、Shift+Enter で改行します。