Skip to content

Commit

Permalink
Merge pull request Azure#72 from tonytheleg/ARO-6290-add-health-endpo…
Browse files Browse the repository at this point in the history
…ints

adds liveness/readiness probes to frontend
  • Loading branch information
bennerv authored Apr 23, 2024
2 parents 1fec606 + d755df9 commit 2ce52a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
15 changes: 14 additions & 1 deletion deploy/aro-hcp-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2ce52a8

Please sign in to comment.