Kubernetes: how to debug CrashLoopBackOff

后端 未结 2 1838
余生分开走
余生分开走 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:44

    You can access the logs of your pods with

    kubectl logs [podname] -p
    

    the -p option will read the logs of the previous (crashed) instance

    If the crash comes from the application, you should have useful logs in there.

提交回复
热议问题