Kubernetes: how to debug CrashLoopBackOff

后端 未结 2 1841
余生分开走
余生分开走 2021-02-02 05:42

I have the following setup:

A docker image omg/telperion on docker hub A kubernetes cluster (with 4 nodes, each with ~50GB RAM) and plenty resources

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 06:40

    CrashLoopBackOff tells that a pod crashes right after the start. Kubernetes tries to start pod again, but again pod crashes and this goes in loop.

    You can check pods logs for any error by kubectl logs -n --previous

    --previous will show you logs of the previous instantiation of a container

    Next, you can check "state reason","last state reason" and "Events" Section by describing pod kubectl describe pod -n

    "state reason","last state reason"

    Sometimes the issue can be because of the Less Memory or CPU provided to application.

提交回复
热议问题