From c6f9b7ec9b7a5332499d776f64a41cce6b5b8757 Mon Sep 17 00:00:00 2001 From: soulseen Date: Fri, 19 Apr 2019 13:26:53 +0800 Subject: [PATCH] Update deploy readiness Signed-off-by: soulseen --- deploy/dev-ol/devops-sample.yaml | 3 +++ deploy/dev/devops-sample.yaml | 3 +++ deploy/no-branch-dev/devops-sample.yaml | 3 +++ deploy/prod-ol/devops-sample.yaml | 9 ++++++--- deploy/prod/devops-sample.yaml | 9 ++++++--- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/deploy/dev-ol/devops-sample.yaml b/deploy/dev-ol/devops-sample.yaml index 3c2fce9f..dc6ece1a 100644 --- a/deploy/dev-ol/devops-sample.yaml +++ b/deploy/dev-ol/devops-sample.yaml @@ -33,6 +33,9 @@ spec: httpGet: path: / port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 imagePullPolicy: Always name: ks-sample ports: diff --git a/deploy/dev/devops-sample.yaml b/deploy/dev/devops-sample.yaml index 0a59e257..5feb3c63 100644 --- a/deploy/dev/devops-sample.yaml +++ b/deploy/dev/devops-sample.yaml @@ -33,6 +33,9 @@ spec: httpGet: path: / port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 imagePullPolicy: Always name: ks-sample ports: diff --git a/deploy/no-branch-dev/devops-sample.yaml b/deploy/no-branch-dev/devops-sample.yaml index c0bbb0b7..c833bacf 100644 --- a/deploy/no-branch-dev/devops-sample.yaml +++ b/deploy/no-branch-dev/devops-sample.yaml @@ -30,6 +30,9 @@ spec: httpGet: path: / port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 ports: - containerPort: 8080 protocol: TCP diff --git a/deploy/prod-ol/devops-sample.yaml b/deploy/prod-ol/devops-sample.yaml index 76a1c81b..43352884 100644 --- a/deploy/prod-ol/devops-sample.yaml +++ b/deploy/prod-ol/devops-sample.yaml @@ -35,9 +35,12 @@ spec: value: 3d image: $REDISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME readinessProbe: - httpGet: - path: / - port: 8080 + httpGet: + path: / + port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 imagePullPolicy: Always name: ks ports: diff --git a/deploy/prod/devops-sample.yaml b/deploy/prod/devops-sample.yaml index f0584f1f..b4a34c30 100644 --- a/deploy/prod/devops-sample.yaml +++ b/deploy/prod/devops-sample.yaml @@ -35,9 +35,12 @@ spec: value: 3d image: $REDISTRY/$HARBOR_NAMESPACE/$APP_NAME:$TAG_NAME readinessProbe: - httpGet: - path: / - port: 8080 + httpGet: + path: / + port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 imagePullPolicy: Always name: ks ports: