-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readiness probe failed: net/http: request canceled (Client.Timeout exceeded while awaiting headers) #88555
Comments
@Nittarab: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/triage unresolved Comment 🤖 I am a bot run by vllry. 👩🔬 |
@Nittarab I may have ran into this issue as well. Thanks! |
@Adithya-copart At the moment I am unable to start one of the most important pod in my system. It happens all the time... |
I tried to use a simple docker container: https://hub.docker.com/r/jmalloc/echo-server/ and the readiness Probe do not fail anymore. So is not a Kubernetes bug... |
sorry can you tell me how did you manage the error at the end ? |
@Nittarab Were you able to resolve it finally? |
Hi, sorry for my late replay. In the end, it was a resource issue. The container was a WordPress application and during initialization, the requested resource was above the resource limit. As a result, it did not respond in the desired time and returned "Client.Timeout". |
@Nittarab |
Here's the relevant issue that has a workaround for this problem, plus some deep-dive details about the root cause. |
What happened:
My pod configuration:
It is an helm cart based on stable/wordpress
If I run
kubectl destribe pod [pod-name]
This issue suggest to increse the
timeoutSeconds
, I tried to increase it to 40 without sucess.This is a good way to debug the error:
https://stackoverflow.com/questions/53067308/readiness-probe-failed-get-http-10-32-1-7180-setting-s-net-http-request-ca
I tried to run this command:
kubectl exec -t [another_pod] -- curl -I [pod's cluster IP]
in my case:
k exec -t barsanti-tv-shopmates-67f7958444-84hq7 -- curl -I http://10.48.8.31:80/wp-login.php
Also in the Pod logs I can see the requests and the 200 responses:
What you expected to happen:
Readiness should not fail...
How to reproduce it (as minimally and precisely as possible):
I really don't know how to reproduce the error...
Anything else we need to know?:
Environment:
kubectl version
):/sig network
The text was updated successfully, but these errors were encountered: