From 7bc492fd1c3bb67368ca7769686265196add3220 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 26 May 2026 18:25:24 +0800 Subject: [PATCH] fix: probe codex forwarder via loopback exec --- deploy/k8s/base/workloads.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/deploy/k8s/base/workloads.yaml b/deploy/k8s/base/workloads.yaml index 581409ad..d98f2479 100644 --- a/deploy/k8s/base/workloads.yaml +++ b/deploy/k8s/base/workloads.yaml @@ -279,16 +279,24 @@ } ], "readinessProbe": { - "httpGet": { - "path": "/health/readiness", - "port": "codex-api" - } + "exec": { + "command": [ + "node", + "-e", + "fetch('http://127.0.0.1:49280/health/readiness').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))" + ] + }, + "timeoutSeconds": 2 }, "livenessProbe": { - "httpGet": { - "path": "/health/live", - "port": "codex-api" - } + "exec": { + "command": [ + "node", + "-e", + "fetch('http://127.0.0.1:49280/health/live').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))" + ] + }, + "timeoutSeconds": 2 } } ],