Skip to content
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

Liveness probe stops working #1095

Closed
tsyganov-ivan opened this issue Jan 29, 2024 · 2 comments
Closed

Liveness probe stops working #1095

tsyganov-ivan opened this issue Jan 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tsyganov-ivan
Copy link

Long story short

After upgrading to 1.37.1 liveness probe stops working.
Event logs GET /healthz HTTP/1.1\" 200 is missing now.
The same code was working with kopf==1.36.2

Kopf version

1.37.1

Kubernetes version

No response

Python version

3.11.7

Code

No response

Logs

No response

Additional information

No response

@tsyganov-ivan tsyganov-ivan added the bug Something isn't working label Jan 29, 2024
@tsyganov-ivan
Copy link
Author

During operator starting I see log message Serving health status at http://0.0.0.0:8080/healthz

# curl -vvv -m 5 http://localhost:8080/healthz
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /healthz HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.88.1
> Accept: */*
>
* Operation timed out after 5000 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 5000 milliseconds with 0 bytes received

During this request no any related logs in output.
Also, we don't have any @kopf.on.probe methods.

tsyganov-ivan added a commit to tsyganov-ivan/kopf that referenced this issue Jan 29, 2024
Pass shutdown_timeout into TCPSite instead of AppRunner
@tsyganov-ivan
Copy link
Author

Upgrading aiohttp to the latest version helps. Probably will be nice to setup min version of aiohttp in requirements.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant