Description
The uptime-kuma setup-job (apps/uptime-kuma/setup-job.yaml) fails to connect to the Uptime Kuma API via the uptime-kuma-api Python library. The job uses Socket.IO to communicate with Uptime Kuma but times out despite retry logic (12 attempts, 15s intervals).
Error
The uptime-kuma-api library cannot establish a Socket.IO connection to http://uptime-kuma.<namespace>.svc:3001.
Additional Bug
sys.exit(1) is called on connection failure but import sys is missing — causes a NameError instead of a clean exit.
Affected Files
apps/uptime-kuma/setup-job.yaml
Expected Behavior
The setup job should:
- Wait for Uptime Kuma to be ready
- Auto-generate admin password and store in K8s Secret
uptime-kuma-admin
- Create HTTP monitors for all cluster services