Skip to content

Commit 38eeca6

Browse files
committed
updates
1 parent 28de1f8 commit 38eeca6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

deployment/console-backend-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
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
@@ -66,7 +66,7 @@ spec:
6666
initialDelaySeconds: 20
6767
periodSeconds: 10
6868
successThreshold: 1
69-
timeoutSeconds: 1
69+
timeoutSeconds: 5
7070
readinessProbe:
7171
failureThreshold: 3
7272
httpGet:
@@ -76,4 +76,4 @@ spec:
7676
initialDelaySeconds: 10
7777
periodSeconds: 10
7878
successThreshold: 1
79-
timeoutSeconds: 1
79+
timeoutSeconds: 5

deployment/console-ui-deploy.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ spec:
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:

0 commit comments

Comments
 (0)