nolar / kopf

A Python framework to write Kubernetes operators in just a few lines of code

Home Page:https://kopf.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liveness probe stops working

tsyganov-ivan opened this issue · comments

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

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.

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