Skip to content

Commit 951d70f

Browse files
committed
Add readiness and liveness probes to backend deployment
1 parent 11d155a commit 951d70f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

charts/backend/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: developer-portal-backend
33
description: A Helm chart for deploying the Diamond developer portal backend
44
type: application
5-
version: 0.1.2
5+
version: 0.1.3
66
appVersion: 0.0.26
77
dependencies:
88
- name: common

charts/backend/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,15 @@ spec:
8383
ports:
8484
- name: http-api
8585
containerPort: 7007
86+
livenessProbe:
87+
httpGet:
88+
port: 7007
89+
path: /healthcheck
90+
initialDelaySeconds: 30
91+
periodSeconds: 10
92+
readinessProbe:
93+
httpGet:
94+
port: 7007
95+
path: /healthcheck
96+
initialDelaySeconds: 30
97+
periodSeconds: 10

0 commit comments

Comments
 (0)