From bfedf919d007bae6630dfcc94b971c35bc000e74 Mon Sep 17 00:00:00 2001 From: maxmwang Date: Tue, 5 Nov 2024 21:56:35 -0800 Subject: [PATCH] readiness probe for frontendd --- infra/app/templates/frontend.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/infra/app/templates/frontend.yaml b/infra/app/templates/frontend.yaml index cfd84f927..d87544660 100644 --- a/infra/app/templates/frontend.yaml +++ b/infra/app/templates/frontend.yaml @@ -21,13 +21,9 @@ spec: ports: - containerPort: {{ .Values.frontend.port }} readinessProbe: - exec: - command: - - /bin/sh - - -c - - > - CONTENT=$(curl -s https://localhost:{{ .Values.frontend.port }}); - if [[ "$CONTENT" != *"
"* ]]; then exit 1; else exit 0; fi + httpGet: + path: / + port: {{ .Values.backend.port }} initialDelaySeconds: 15 periodSeconds: 3