Skip to content

Commit 8be2f41

Browse files
committed
conf(web): Add startup and liveness probes to web deployment
These probes ensure the application is running and able to process traffic, and remains healthy to continue to route traffic to. This allows the cluster tooling to manage the ingress/load balancer and deliver traffic to pods that are able to handle data.
1 parent b347af1 commit 8be2f41

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/web/base/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ spec:
3737
- name: metacpan-web-local
3838
mountPath: /app/metacpan_web_local.conf
3939
subPath: metacpan_web_local.conf
40+
livenessProbe:
41+
httpGet:
42+
path: /healthcheck
43+
port: 5001
44+
initialDelaySeconds: 30
45+
periodSeconds: 10
46+
startupProbe:
47+
httpGet:
48+
path: /healthcheck
49+
port: 5001
50+
failureThreshold: 30
51+
periodSeconds: 10
4052
volumes:
4153
- name: metacpan-web-local
4254
secret:

0 commit comments

Comments
 (0)