Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions deploy/helm/codex-lb/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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!"
Loading