Streamlined Kubernetes API endpoint calling timeouts #503

Merged
tobru merged 1 commit from k8s-timeout-tweaks into main 2026-05-11 07:35:26 +00:00
Owner

A slow or broken K8s endpoint (especially through a SOCKS5 proxy) could hang a request past gunicorn's 30s worker timeout, causing SystemExit:1 aborts and 500s. Config-level connect_timeout/read_timeout on kubernetes.client.Configuration weren't reliably honored through the SOCKS path because PySocks uses its own socket timeout sourced from urllib3's per-request Timeout.

Fix: Centralized timeout policy via an ApiClient subclass.

A slow or broken K8s endpoint (especially through a SOCKS5 proxy) could hang a request past gunicorn's 30s worker timeout, causing SystemExit:1 aborts and 500s. Config-level connect_timeout/read_timeout on kubernetes.client.Configuration weren't reliably honored through the SOCKS path because PySocks uses its own socket timeout sourced from urllib3's per-request Timeout. Fix: Centralized timeout policy via an ApiClient subclass.
renovate force-pushed k8s-timeout-tweaks from 083991cbf4 to c936cbfa45 2026-05-08 15:04:06 +00:00 Compare
renovate force-pushed k8s-timeout-tweaks from c936cbfa45 to 68ff9d5398 2026-05-11 06:30:48 +00:00 Compare
tobru changed title from WIP: improve overall k8s api connection handling to Streamlined Kubernetes API endpoint calling timeouts 2026-05-11 07:32:45 +00:00
renovate force-pushed k8s-timeout-tweaks from bbaec44aa2
All checks were successful
Tests / test (push) Successful in 48s
to 51c080fc83
All checks were successful
Tests / test (push) Successful in 48s
2026-05-11 07:34:23 +00:00
Compare
tobru merged commit b874dce97d into main 2026-05-11 07:35:26 +00:00
tobru deleted branch k8s-timeout-tweaks 2026-05-11 07:35:26 +00:00
Sign in to join this conversation.
No description provided.