From 08d83bc57e6968e0b05931958f6aa4faa222aa07 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 31 Mar 2026 23:06:51 +0200 Subject: [PATCH] fix(helm): replace broken nc -z in migrate job init container BusyBox 1.37 nc -z outputs "punt!" and hangs. Use nc -w 2 with stdin redirect instead, which correctly tests TCP connectivity. --- backend/deploy/helm/templates/migrate-job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/deploy/helm/templates/migrate-job.yaml b/backend/deploy/helm/templates/migrate-job.yaml index af152a7..26155a9 100644 --- a/backend/deploy/helm/templates/migrate-job.yaml +++ b/backend/deploy/helm/templates/migrate-job.yaml @@ -52,7 +52,7 @@ spec: - -c - | echo "Waiting for PostgreSQL..." - until nc -z "$DB_HOST" "$DB_PORT"; do + until nc -w 2 "$DB_HOST" "$DB_PORT" < /dev/null; do sleep 3 done echo "PostgreSQL is reachable"