K8S POD无限重启 报错Back-off restarting failed container
由于启动容器后,容器内部没有常驻的前台进程,导致容器启动成功后即退出,从而进行了持续的重启。 例如ubuntu这类操作系统容器,nginx这种默认后台执行的容器
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
command : [ "nginx", "-g", "daemon off;"]