File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 73
73
volumeMounts :
74
74
- name : certs-volume
75
75
mountPath : /usr/src/app/certs
76
+ livenessProbe :
77
+ httpGet :
78
+ port : 3000
79
+ path : liveness
80
+ periodSeconds : 3
81
+ initialDelaySeconds : 5
82
+ startupProbe :
83
+ httpGet :
84
+ port : 3000
85
+ path : liveness
86
+ periodSeconds : 3
87
+ failureThreshold : 20
Original file line number Diff line number Diff line change @@ -9,9 +9,14 @@ async def podname(request: web.Request):
9
9
return web .json_response ({"podname" : POD_NAME })
10
10
11
11
12
+ async def liveness (_ ):
13
+ return web .Response (status = 200 )
14
+
15
+
12
16
async def start_site ():
13
17
app = web .Application ()
14
18
app .router .add_get ("/podname" , podname )
19
+ app .router .add_get ("/liveness" , liveness )
15
20
16
21
runner = web .AppRunner (app )
17
22
await runner .setup ()
You can’t perform that action at this time.
0 commit comments