Back-off restarting failed container
基本原理Back-off restarting failed container的Warning事件,一般是由于通过指定的镜像启动容器后,容器内部没有常驻进程,导致容器启动成功后即退出,从而进行了持续的重启
解决方法找到对应的deployment添加以下信息
command: ["/bin/bash", "-ce", "tail -f /dev/null"]

Back-off restarting failed container
基本原理Back-off restarting failed container的Warning事件,一般是由于通过指定的镜像启动容器后,容器内部没有常驻进程,导致容器启动成功后即退出,从而进行了持续的重启
解决方法找到对应的deployment添加以下信息
command: ["/bin/bash", "-ce", "tail -f /dev/null"]