问题描述
使用头盔升级命令在kubernetes
上运行容器时,出现此错误:
While running my container on kubernetes
using helm upgrade command, I am getting this error:
我的docker映像用于node.js应用程序,我正尝试通过minikube对其进行管理.
My docker image is for a node.js application and I am trying to manage it through minikube.
推荐答案
对于此处的其他任何人,如果使用掌舵来管理部署,则需要在/templates
文件夹的deployments.yaml
模板中设置initialDelaySeconds
.在livenessProbe
下.如果探针无法连接(如我的情况),livenessProbe
将强制重新启动您的Pod.并没有给我的应用程序足够的时间来构建.
For anyone else here, if using helm to manage your deployments, you need to set initialDelaySeconds
it in the deployments.yaml
template in the /templates
folder under livenessProbe
. The livenessProbe
will force restart your pod if the probe cannot connect, as was happening with mine. It wasn't giving my application enough time to build.
这篇关于Kubernetes Readiness探针失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!