How to debug pod failure on EKS?

0

Hello there.

I'm currently using EKS v1.11.5 (control plane only) and just noticed that one of my pod failed a week ago.

Kubernetes automatically created a new pod right away, so there was no downtime, but still want to debug what really happened.

I tried to get logs from the failed pod but it only returned me container

"<deployment-name>" in pod "<pod-name>" is not available

Is there any way to track down this problem deeply? Like kubernetes audit-logging from control plane?

Thanks.

  • Maybe something left on syslog of worker nodes, but I blocked ssh connection to nodes for security reasons. so it's not possible for now.
kycfeel
已提問 5 年前檢視次數 422 次
1 個回答
0

As long as you have not removed the pod you could do

kubectl describe pod ....

It should indicate why the pod failed, could be due to OOM or other resource failure etc.

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南