From 61ae7d231ee2c0f5346af4b95f8495ba62c6ec79 Mon Sep 17 00:00:00 2001 From: kimscott Date: Tue, 7 Jan 2020 16:45:11 +0900 Subject: [PATCH] add probe --- cloudbuild.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index fc2c17d..029105c 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -79,6 +79,22 @@ steps: image: gcr.io/$PROJECT_ID/$_PROJECT_NAME:$COMMIT_SHA ports: - containerPort: 8080 + readinessProbe: + httpGet: + path: /actuator/health + port: 8080 + initialDelaySeconds: 10 + timeoutSeconds: 2 + periodSeconds: 5 + failureThreshold: 1 + livenessProbe: + httpGet: + path: /actuator/health + port: 8080 + initialDelaySeconds: 40 + timeoutSeconds: 2 + periodSeconds: 5 + failureThreshold: 5 EOF substitutions: _PROJECT_NAME: orders