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

前端 未结 15 1823
耶瑟儿~
耶瑟儿~ 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:05

    i solved this problem by removing space between quotes and command value inside of array ,this is happened because container exited after started and no executable command present which to be run inside of container.

    ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600']
    

提交回复
热议问题