fix(devops): fix OpenBao healthcheck URL truncation with CMD-SHELL
Some checks failed
ci/woodpecker/push/infra Pipeline failed

The CMD exec form drops everything after & in the healthcheck URL,
causing uninitcode=200 and sealedcode=200 params to be lost. Without
them, OpenBao returns 501 when uninitialized, healthcheck fails, and
Swarm kills the container before the init sidecar can reach it.

Switch to CMD-SHELL with single-quoted URL to preserve query params.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 00:08:12 -06:00
parent 14162b9213
commit b6d272992a
4 changed files with 10 additions and 20 deletions

View File

@@ -27,11 +27,8 @@ services:
healthcheck:
test:
[
"CMD",
"wget",
"--spider",
"--quiet",
"http://localhost:8200/v1/sys/health?standbyok=true&uninitcode=200&sealedcode=200",
"CMD-SHELL",
"wget --spider --quiet 'http://localhost:8200/v1/sys/health?standbyok=true&uninitcode=200&sealedcode=200'",
]
interval: 10s
timeout: 5s