From d755df9c30fe14a6f9ddb250d8909ab8f80d5c4f Mon Sep 17 00:00:00 2001 From: Antony Natale Date: Tue, 23 Apr 2024 09:57:43 -0400 Subject: [PATCH] adds liveness/readiness probes to frontend --- Makefile | 2 +- deploy/aro-hcp-frontend.yml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 97177565e..bd0379a62 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ clean: rm aro-hcp-frontend deploy-frontend: - oc process -f ./deploy/aro-hcp-frontend.yml -p ARO_HCP_FRONTEND_IMAGE=${ARO_HCP_FRONTEND_IMAGE} | oc replace -f - + oc process -f ./deploy/aro-hcp-frontend.yml -p ARO_HCP_FRONTEND_IMAGE=${ARO_HCP_FRONTEND_IMAGE} | oc apply -f - undeploy-frontend: oc process -f ./deploy/aro-hcp-frontend.yml -p ARO_HCP_FRONTEND_IMAGE=${ARO_HCP_FRONTEND_IMAGE} | oc delete -f - diff --git a/deploy/aro-hcp-frontend.yml b/deploy/aro-hcp-frontend.yml index 2cacea8bb..060bea390 100644 --- a/deploy/aro-hcp-frontend.yml +++ b/deploy/aro-hcp-frontend.yml @@ -58,6 +58,19 @@ objects: - ALL runAsNonRoot: true seccompProfile: - type: RuntimeDefault + type: RuntimeDefault + livenessProbe: + httpGet: + path: /healthz/ready + port: 8443 + initialDelaySeconds: 15 + periodSeconds: 20 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /healthz/ready + port: 8443 + initialDelaySeconds: 5 + periodSeconds: 10 restartPolicy: Always terminationGracePeriodSeconds: 30