From b427cfe2da408b4fa495cc47df12403a0e2f6540 Mon Sep 17 00:00:00 2001 From: Soju06 Date: Fri, 3 Apr 2026 15:52:18 +0900 Subject: [PATCH] helm: enhance test to verify readiness (includes DB connectivity) --- .../codex-lb/templates/tests/test-connection.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/deploy/helm/codex-lb/templates/tests/test-connection.yaml b/deploy/helm/codex-lb/templates/tests/test-connection.yaml index 68396259..399cc1ad 100644 --- a/deploy/helm/codex-lb/templates/tests/test-connection.yaml +++ b/deploy/helm/codex-lb/templates/tests/test-connection.yaml @@ -15,8 +15,12 @@ spec: runAsUser: 1000 seccompProfile: type: RuntimeDefault + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 4 }} + {{- end }} containers: - - name: test-connection + - name: test-health image: busybox:1.37 imagePullPolicy: IfNotPresent securityContext: @@ -29,5 +33,10 @@ spec: - sh - -c - | - wget --spider --timeout=10 http://{{ include "codex-lb.fullname" . }}:2455/health || exit 1 - echo "Connection test passed!" + echo "=== Health endpoint ===" + wget --spider --timeout=10 http://{{ include "codex-lb.fullname" . }}:{{ .Values.service.port | default 2455 }}/health || exit 1 + echo "Health check passed!" + + echo "=== Startup probe ===" + wget -qO- --timeout=10 http://{{ include "codex-lb.fullname" . }}:{{ .Values.service.port | default 2455 }}/health/ready || exit 1 + echo "Readiness check passed!"