Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions manifests/kubernetes/auth-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
image: manojmdocker14/microforge-auth-service:v1.1.0
ports:
- containerPort: 8082
livenessProbe:
httpGet:
path: /api/auth/health
port: 8082
initialDelaySeconds: 45
periodSeconds: 20
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /api/auth/health
port: 8082
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
envFrom:
- configMapRef:
name: auth-service-config
26 changes: 26 additions & 0 deletions manifests/kubernetes/login-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ spec:
image: manojmdocker14/microforge-users-mysql:v1.0.0
ports:
- containerPort: 3306
startupProbe:
exec:
command:
- bash
- "-c"
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
failureThreshold: 30
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
exec:
command:
- bash
- "-c"
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
exec:
command:
- bash
- "-c"
- "mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;'"
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
envFrom:
- configMapRef:
name: login-mysql-config
Expand Down
14 changes: 14 additions & 0 deletions manifests/kubernetes/metadata-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ spec:
image: manojmdocker14/microforge-metadata-service:v1.1.0
ports:
- containerPort: 8084
readinessProbe:
httpGet:
path: /api/metadata/health
port: 8084
initialDelaySeconds: 45
periodSeconds: 20
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /api/metadata/health
port: 8084
initialDelaySeconds: 45
periodSeconds: 10
timeoutSeconds: 5
envFrom:
- configMapRef:
name: metadata-service-config
Expand Down
26 changes: 26 additions & 0 deletions manifests/kubernetes/notification-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ spec:
image: manojmdocker14/microforge-notifications-mysql:v1.0.0
ports:
- containerPort: 3306
startupProbe:
exec:
command:
- bash
- "-c"
- "mysqladmin ping -u root -p$MYSQL_ROOT_PASSWORD"
initialDelaySeconds: 15 # Wait 15s before starting the first check
periodSeconds: 10 # Check every 10s
failureThreshold: 30 # Allow 30 failures (Total 5 minutes of boot time)
livenessProbe:
exec:
command:
- bash
- "-c"
- "mysqladmin ping -u root -p$MYSQL_ROOT_PASSWORD"
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
exec:
command:
- bash
- "-c"
- "mysql -u root -p$MYSQL_ROOT_PASSWORD -e 'SELECT 1;'"
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 10
envFrom:
- configMapRef:
name: notification-mysql-config
Expand Down
14 changes: 14 additions & 0 deletions manifests/kubernetes/notification-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ spec:
image: manojmdocker14/microforge-notification-service:v1.1.0
ports:
- containerPort: 8083
livenessProbe:
httpGet:
path: /actuator/health
port: 8083
initialDelaySeconds: 45 # Increased for DB connection setup
periodSeconds: 20
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /actuator/health
port: 8083
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
env:
- name: MYSQL_HOST
value: notification-mysql
Expand Down