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
gefragt vor 5 Jahren422 Aufrufe
1 Antwort
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.

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen