Skip to content

Commit

Permalink
readiness probe for frontendd
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Nov 6, 2024
1 parent a82f5b2 commit bfedf91
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions infra/app/templates/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" != *"<div id="root"></div>"* ]]; then exit 1; else exit 0; fi
httpGet:
path: /
port: {{ .Values.backend.port }}
initialDelaySeconds: 15
periodSeconds: 3

Expand Down

0 comments on commit bfedf91

Please sign in to comment.