Skip to content

Commit cc0e06a

Browse files
committed
Added Liveness Probe and Readiness Probe
1 parent 7d9a4cf commit cc0e06a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

manifests/kubernetes/notification-service.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ spec:
4545
image: manojmdocker14/microforge-notification-service:v1.1.0
4646
ports:
4747
- containerPort: 8083
48+
livenessProbe:
49+
httpGet:
50+
path: /actuator/health
51+
port: 8083
52+
initialDelaySeconds: 45 # Increased for DB connection setup
53+
periodSeconds: 20
54+
timeoutSeconds: 10
55+
readinessProbe:
56+
httpGet:
57+
path: /actuator/health
58+
port: 8083
59+
initialDelaySeconds: 20
60+
periodSeconds: 10
61+
timeoutSeconds: 5
4862
env:
4963
- name: MYSQL_HOST
5064
value: notification-mysql

0 commit comments

Comments
 (0)