File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2525 - /bin/sh
2626 - -c
2727 - |
28- until mysqladmin ping -hconsole-db -u$MYSQL_USER -p$MYSQL_PASSWORD - -silent; do
28+ until mysqladmin ping -hconsole-db --silent; do
2929 echo 'Waiting for the console database to be ready...'
3030 sleep 5
3131 done
6666 initialDelaySeconds : 20
6767 periodSeconds : 10
6868 successThreshold : 1
69- timeoutSeconds : 1
69+ timeoutSeconds : 5
7070 readinessProbe :
7171 failureThreshold : 3
7272 httpGet :
7676 initialDelaySeconds : 10
7777 periodSeconds : 10
7878 successThreshold : 1
79- timeoutSeconds : 1
79+ timeoutSeconds : 5
Original file line number Diff line number Diff line change 2323 - /bin/sh
2424 - -c
2525 - |
26+ max_retries=24
27+ count=0
2628 until curl -sf http://console-backend:8080/healthz; do
27- echo "Waiting for console-backend..."
29+ if [ $count -ge $max_retries ]; then
30+ echo "console-backend not ready after $((max_retries * 5)) seconds, failing initContainer."
31+ exit 1
32+ fi
33+ echo "Waiting for console-backend... ($count/$max_retries)"
34+ count=$((count + 1))
2835 sleep 5
2936 done
3037 containers :
You can’t perform that action at this time.
0 commit comments