Skip to content

Commit 7113876

Browse files
authored
Merge pull request #79 from Azure-Samples/manifests
feat: update manifests with probes
2 parents fa0cb75 + 59a5d89 commit 7113876

File tree

3 files changed

+182
-3
lines changed

3 files changed

+182
-3
lines changed

ai-service.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@ spec:
3737
limits:
3838
cpu: 30m
3939
memory: 65Mi
40+
startupProbe:
41+
httpGet:
42+
path: /health
43+
port: 5001
44+
initialDelaySeconds: 60
45+
failureThreshold: 3
46+
periodSeconds: 5
47+
readinessProbe:
48+
httpGet:
49+
path: /health
50+
port: 5001
51+
initialDelaySeconds: 3
52+
failureThreshold: 3
53+
periodSeconds: 5
54+
livenessProbe:
55+
httpGet:
56+
path: /health
57+
port: 5001
58+
initialDelaySeconds: 3
59+
failureThreshold: 5
60+
periodSeconds: 3
4061
---
4162
apiVersion: v1
4263
kind: Service

aks-store-all-in-one.yaml

Lines changed: 103 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
apiVersion: apps/v1
2-
kind: Deployment
2+
kind: StatefulSet
33
metadata:
44
name: mongodb
55
spec:
6+
serviceName: mongodb
67
replicas: 1
78
selector:
89
matchLabels:
@@ -27,6 +28,14 @@ spec:
2728
limits:
2829
cpu: 25m
2930
memory: 1024Mi
31+
livenessProbe:
32+
exec:
33+
command:
34+
- mongosh
35+
- --eval
36+
- db.runCommand('ping').ok
37+
initialDelaySeconds: 5
38+
periodSeconds: 5
3039
---
3140
apiVersion: v1
3241
kind: Service
@@ -48,10 +57,11 @@ metadata:
4857
name: rabbitmq-enabled-plugins
4958
---
5059
apiVersion: apps/v1
51-
kind: Deployment
60+
kind: StatefulSet
5261
metadata:
5362
name: rabbitmq
5463
spec:
64+
serviceName: rabbitmq
5565
replicas: 1
5666
selector:
5767
matchLabels:
@@ -152,6 +162,27 @@ spec:
152162
limits:
153163
cpu: 75m
154164
memory: 128Mi
165+
startupProbe:
166+
httpGet:
167+
path: /health
168+
port: 3000
169+
failureThreshold: 3
170+
initialDelaySeconds: 15
171+
periodSeconds: 5
172+
readinessProbe:
173+
httpGet:
174+
path: /health
175+
port: 3000
176+
failureThreshold: 3
177+
initialDelaySeconds: 3
178+
periodSeconds: 5
179+
livenessProbe:
180+
httpGet:
181+
path: /health
182+
port: 3000
183+
failureThreshold: 5
184+
initialDelaySeconds: 3
185+
periodSeconds: 3
155186
initContainers:
156187
- name: wait-for-rabbitmq
157188
image: busybox
@@ -220,6 +251,20 @@ spec:
220251
limits:
221252
cpu: 5m
222253
memory: 20Mi
254+
readinessProbe:
255+
httpGet:
256+
path: /health
257+
port: 3001
258+
failureThreshold: 3
259+
initialDelaySeconds: 3
260+
periodSeconds: 5
261+
livenessProbe:
262+
httpGet:
263+
path: /health
264+
port: 3001
265+
failureThreshold: 5
266+
initialDelaySeconds: 3
267+
periodSeconds: 3
223268
---
224269
apiVersion: v1
225270
kind: Service
@@ -262,6 +307,20 @@ spec:
262307
limits:
263308
cpu: 1m
264309
memory: 7Mi
310+
readinessProbe:
311+
httpGet:
312+
path: /health
313+
port: 3002
314+
failureThreshold: 3
315+
initialDelaySeconds: 3
316+
periodSeconds: 5
317+
livenessProbe:
318+
httpGet:
319+
path: /health
320+
port: 3002
321+
failureThreshold: 5
322+
initialDelaySeconds: 3
323+
periodSeconds: 3
265324
---
266325
apiVersion: v1
267326
kind: Service
@@ -310,6 +369,27 @@ spec:
310369
limits:
311370
cpu: 1000m
312371
memory: 512Mi
372+
startupProbe:
373+
httpGet:
374+
path: /health
375+
port: 8080
376+
failureThreshold: 3
377+
initialDelaySeconds: 15
378+
periodSeconds: 5
379+
readinessProbe:
380+
httpGet:
381+
path: /health
382+
port: 8080
383+
failureThreshold: 3
384+
initialDelaySeconds: 3
385+
periodSeconds: 3
386+
livenessProbe:
387+
httpGet:
388+
path: /health
389+
port: 8080
390+
failureThreshold: 5
391+
initialDelaySeconds: 3
392+
periodSeconds: 3
313393
---
314394
apiVersion: v1
315395
kind: Service
@@ -359,6 +439,27 @@ spec:
359439
limits:
360440
cpu: 1000m
361441
memory: 512Mi
442+
startupProbe:
443+
httpGet:
444+
path: /health
445+
port: 8081
446+
failureThreshold: 3
447+
initialDelaySeconds: 15
448+
periodSeconds: 5
449+
readinessProbe:
450+
httpGet:
451+
path: /health
452+
port: 8081
453+
failureThreshold: 3
454+
initialDelaySeconds: 3
455+
periodSeconds: 5
456+
livenessProbe:
457+
httpGet:
458+
path: /health
459+
port: 8081
460+
failureThreshold: 5
461+
initialDelaySeconds: 3
462+
periodSeconds: 3
362463
---
363464
apiVersion: v1
364465
kind: Service

aks-store-quickstart.yaml

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
apiVersion: apps/v1
2-
kind: Deployment
2+
kind: StatefulSet
33
metadata:
44
name: rabbitmq
55
spec:
6+
serviceName: rabbitmq
67
replicas: 1
78
selector:
89
matchLabels:
@@ -111,6 +112,27 @@ spec:
111112
limits:
112113
cpu: 75m
113114
memory: 128Mi
115+
startupProbe:
116+
httpGet:
117+
path: /health
118+
port: 3000
119+
failureThreshold: 3
120+
initialDelaySeconds: 15
121+
periodSeconds: 5
122+
readinessProbe:
123+
httpGet:
124+
path: /health
125+
port: 3000
126+
failureThreshold: 3
127+
initialDelaySeconds: 3
128+
periodSeconds: 5
129+
livenessProbe:
130+
httpGet:
131+
path: /health
132+
port: 3000
133+
failureThreshold: 5
134+
initialDelaySeconds: 3
135+
periodSeconds: 3
114136
initContainers:
115137
- name: wait-for-rabbitmq
116138
image: busybox
@@ -164,6 +186,20 @@ spec:
164186
limits:
165187
cpu: 1m
166188
memory: 7Mi
189+
readinessProbe:
190+
httpGet:
191+
path: /health
192+
port: 3002
193+
failureThreshold: 3
194+
initialDelaySeconds: 3
195+
periodSeconds: 5
196+
livenessProbe:
197+
httpGet:
198+
path: /health
199+
port: 3002
200+
failureThreshold: 5
201+
initialDelaySeconds: 3
202+
periodSeconds: 3
167203
---
168204
apiVersion: v1
169205
kind: Service
@@ -212,6 +248,27 @@ spec:
212248
limits:
213249
cpu: 1000m
214250
memory: 512Mi
251+
startupProbe:
252+
httpGet:
253+
path: /health
254+
port: 8080
255+
failureThreshold: 3
256+
initialDelaySeconds: 15
257+
periodSeconds: 5
258+
readinessProbe:
259+
httpGet:
260+
path: /health
261+
port: 8080
262+
failureThreshold: 3
263+
initialDelaySeconds: 3
264+
periodSeconds: 3
265+
livenessProbe:
266+
httpGet:
267+
path: /health
268+
port: 8080
269+
failureThreshold: 5
270+
initialDelaySeconds: 3
271+
periodSeconds: 3
215272
---
216273
apiVersion: v1
217274
kind: Service

0 commit comments

Comments
 (0)