Skip to content

Commit 906c621

Browse files
authored
Add and adapt liveness probes for hg and lexbox (#2009)
1 parent cd5fc94 commit 906c621

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

deployment/base/hg-deployment.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ spec:
125125
port: 8088
126126
failureThreshold: 30
127127
periodSeconds: 10
128+
livenessProbe:
129+
httpGet:
130+
path: /
131+
port: 8088
132+
initialDelaySeconds: 300
133+
periodSeconds: 20
134+
timeoutSeconds: 5
135+
failureThreshold: 5
128136

129137
volumeMounts:
130138
- name: repos
@@ -154,8 +162,9 @@ spec:
154162
path: /api/v03/isAvailable
155163
port: 80
156164
failureThreshold: 5
157-
periodSeconds: 120
165+
periodSeconds: 60
158166
initialDelaySeconds: 300
167+
timeoutSeconds: 5
159168

160169
volumeMounts:
161170
- name: cache

deployment/base/lexbox-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ spec:
6969
failureThreshold: 30
7070
periodSeconds: 10
7171
timeoutSeconds: 5
72+
livenessProbe:
73+
httpGet:
74+
port: 5158
75+
path: /api/healthz
76+
initialDelaySeconds: 300
77+
periodSeconds: 20
78+
timeoutSeconds: 5
79+
failureThreshold: 5
7280
ports:
7381
- containerPort: 5158
7482

0 commit comments

Comments
 (0)