From 951d70f1e549b95a1529b637fe41db6207885b36 Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Thu, 9 Jan 2025 16:48:54 +0000 Subject: [PATCH 1/2] Add readiness and liveness probes to backend deployment --- charts/backend/Chart.yaml | 2 +- charts/backend/templates/deployment.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/backend/Chart.yaml b/charts/backend/Chart.yaml index 0182ca3f..4b2bf0a4 100644 --- a/charts/backend/Chart.yaml +++ b/charts/backend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: developer-portal-backend description: A Helm chart for deploying the Diamond developer portal backend type: application -version: 0.1.2 +version: 0.1.3 appVersion: 0.0.26 dependencies: - name: common diff --git a/charts/backend/templates/deployment.yaml b/charts/backend/templates/deployment.yaml index 4ad63d0c..b9c6ece3 100644 --- a/charts/backend/templates/deployment.yaml +++ b/charts/backend/templates/deployment.yaml @@ -83,3 +83,15 @@ spec: ports: - name: http-api containerPort: 7007 + livenessProbe: + httpGet: + port: 7007 + path: /healthcheck + initialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + httpGet: + port: 7007 + path: /healthcheck + initialDelaySeconds: 30 + periodSeconds: 10 From 0fb47b651e405edf55d83b29fc9f1a0c243806ca Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Thu, 9 Jan 2025 16:51:14 +0000 Subject: [PATCH 2/2] Add readiness and liveness probes to frontend --- charts/frontend/Chart.yaml | 2 +- charts/frontend/templates/deployment.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/frontend/Chart.yaml b/charts/frontend/Chart.yaml index 6652c559..a81d351c 100644 --- a/charts/frontend/Chart.yaml +++ b/charts/frontend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: developer-portal-frontend description: A Helm chart for deploying the Diamond developer portal backend type: application -version: 0.1.0 +version: 0.1.1 appVersion: 0.0.26 dependencies: - name: common diff --git a/charts/frontend/templates/deployment.yaml b/charts/frontend/templates/deployment.yaml index b2adf72c..4de514bc 100644 --- a/charts/frontend/templates/deployment.yaml +++ b/charts/frontend/templates/deployment.yaml @@ -36,3 +36,15 @@ spec: ports: - name: http-serve containerPort: 80 + livenessProbe: + httpGet: + port: 80 + path: /healthcheck + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + port: 80 + path: /healthcheck + initialDelaySeconds: 10 + periodSeconds: 10