From 23a7a509db69450ca6fed9a7a8ef448f4c1df2ca Mon Sep 17 00:00:00 2001 From: Lukas Kallies Date: Tue, 28 Jul 2026 22:53:22 +0200 Subject: [PATCH] Do not fail immediately when running the post bucket hook (#10471) curl (unlike wget --spider) exits 0 as soon as it gets any HTTP response, even 401/403 - required if the filer rejects unauthenticated requests when JWT auth is enabled --- .../seaweedfs/templates/shared/post-install-bucket-hook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml index 2e780595f..eb19ed672 100644 --- a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml @@ -103,7 +103,7 @@ spec: echo "Waiting for service at $url..." while [ $attempt -le $max_attempts ]; do - if wget -q --spider "$url" >/dev/null 2>&1; then + if curl -sS -o /dev/null --max-time 5 "$url" >/dev/null 2>&1; then echo "Service at $url is up!" return 0 fi