k8s报错:Liveness probe failed: HTTP probe failed with statuscode: 404
k8s中pod部署失败,状态为CrashLoopBackOff,观察详细信息,报错:WarningUnhealthy28m (x4253 over 2d23h)kubelet, 10.253.84.20Liveness probe failed: HTTP probe failed with statuscode: 404原来是liveness probe(存活探针)报错,观察yaml文件:……l
·
k8s中pod部署失败,状态为CrashLoopBackOff,观察详细信息,报错:
Warning Unhealthy 28m (x4253 over 2d23h) kubelet, 10.253.84.20 Liveness probe failed: HTTP probe failed with statuscode: 404
原来是liveness probe(存活探针)报错,观察yaml文件:
……
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 1880
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
……
而应用中没有对GET请求的处理,所以会出错,删除yaml文件中的livenessProbe相关配置,重启部署解决。
更多推荐
已为社区贡献1条内容
所有评论(0)