Kubernetes - Http Probe Failed with Statuscode: 404

I`ve got a specyfic problem. When the container is running in Pods, the application contained in it works correctly, while in kubernetes the status is displayed - Error. In Events there are the following problems:

Readiness probe failed: HTTP Probe failed with statuscode: 404
Liveness probe failed: HTTP Probe failed with statuscode: 404

The same errors are displayed in four containers with applications (Spring Boot). On the other hand, when I launch a container with a simple application (writing numbers from 0 to 10), in Kuberneres, the status is success. I'm just learning a Kubernetes, so I'd like to ask for help, which may be the cause of the problems?

3

1 Answer

check liveness probe and readiness probe in your deployment yml. Check the path is correct. if still not resolved increase the initialDelay seconds

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest