k8s报错:Liveness probe failed: HTTP probe failed with statuscode: 404

The pod deployment failed in k8s and the status is CrashLoopBackOff. Observe the detailed information and report an error:

Warning  Unhealthy  28m (x4253 over 2d23h)     kubelet, 10.253.84.20  Liveness probe failed: HTTP probe failed with statuscode: 404

It turned out that the liveness probe reported an error. Observe the yaml file:

  ……
  livenessProbe:
    failureThreshold: 3
    httpGet:
      path: /
      port: 1880
      scheme: HTTP
    periodSeconds: 10
    successThreshold: 1
    timeoutSeconds: 1
  ……

And there is no GET request processing in the application, so an error will occur. Delete the livenessProbe related configuration in the yaml file and restart the deployment to solve it.

Guess you like

Origin blog.csdn.net/qq_14997473/article/details/113521950