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...
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?
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