patch
Some checks failed
scrum-manager/pipeline/head There was a failure building this commit

This commit is contained in:
2026-02-22 12:12:01 +00:00
parent 65c82c2e4c
commit 6c19e8d747

View File

@@ -24,11 +24,13 @@ spec:
- sh - sh
- -c - -c
- | - |
echo "Waiting for MySQL to be ready..." echo "Waiting for MySQL port to open..."
until nc -z mysql 3306; do until nc -z mysql 3306; do
echo "MySQL is not ready yet, retrying in 3s..." echo "MySQL not ready yet, retrying in 5s..."
sleep 3 sleep 5
done done
echo "Port open — waiting 15s for MySQL to finish initializing..."
sleep 15
echo "MySQL is ready!" echo "MySQL is ready!"
containers: containers:
- name: backend - name: backend
@@ -46,12 +48,12 @@ spec:
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mysql-secret name: mysql-secret
key: DB_USER key: MYSQL_USER # matches new secret key
- name: DB_PASSWORD - name: DB_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mysql-secret name: mysql-secret
key: DB_PASSWORD key: MYSQL_PASSWORD # matches new secret key
- name: DB_NAME - name: DB_NAME
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@@ -70,7 +72,7 @@ spec:
httpGet: httpGet:
path: /api/health path: /api/health
port: http port: http
initialDelaySeconds: 15 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 3 timeoutSeconds: 3
failureThreshold: 3 failureThreshold: 3
@@ -78,7 +80,7 @@ spec:
httpGet: httpGet:
path: /api/health path: /api/health
port: http port: http
initialDelaySeconds: 5 initialDelaySeconds: 15
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3 timeoutSeconds: 3
failureThreshold: 5 failureThreshold: 5