My kubernetes pods keep crashing with “CrashLoopBackOff” but I can't find any log

前端 未结 15 1835
耶瑟儿~
耶瑟儿~ 2020-11-29 22:40

This is what I keep getting:

[root@centos-master ~]# kubectl get pods
NAME               READY     STATUS             RESTARTS   AGE
nfs-server-h6nw8   1/1           


        
15条回答
  •  醉话见心
    2020-11-29 23:19

    Try rerunning the pod and running

     kubectl get pods --watch
    

    to watch the status of the pod as it progresses.

    In my case, I would only see the end result, 'CrashLoopBackOff,' but the docker container ran fine locally. So I watched the pods using the above command, and I saw the container briefly progress into an OOMKilled state, which meant to me that it required more memory.

提交回复
热议问题