fix: probe codex forwarder via loopback exec

This commit is contained in:
Codex
2026-05-26 18:25:24 +08:00
parent c176e4c849
commit 7bc492fd1c
+16 -8
View File
@@ -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
}
}
],