From 15b725ba9a04040c3326912fc79a78c1bb22b08b Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Tue, 15 Oct 2019 18:36:52 +0800 Subject: [PATCH] Extend the initialDelaySeconds of livenessProbe This commits extends the initialDelaySeconds of livenessProbe to avoild pod creating failure when the pod starting up slowly Signed-off-by: Wenkai Yin --- templates/chartmuseum/chartmuseum-dpl.yaml | 2 +- templates/clair/clair-dpl.yaml | 2 +- templates/database/database-ss.yaml | 2 +- templates/jobservice/jobservice-dpl.yaml | 2 +- templates/nginx/deployment.yaml | 2 +- templates/portal/deployment.yaml | 2 +- templates/redis/statefulset.yaml | 2 +- templates/registry/registry-dpl.yaml | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/chartmuseum/chartmuseum-dpl.yaml b/templates/chartmuseum/chartmuseum-dpl.yaml index 0c513ce49..a31280928 100644 --- a/templates/chartmuseum/chartmuseum-dpl.yaml +++ b/templates/chartmuseum/chartmuseum-dpl.yaml @@ -33,7 +33,7 @@ spec: httpGet: path: /health port: 9999 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: diff --git a/templates/clair/clair-dpl.yaml b/templates/clair/clair-dpl.yaml index f64a44a87..cc2d40694 100644 --- a/templates/clair/clair-dpl.yaml +++ b/templates/clair/clair-dpl.yaml @@ -31,7 +31,7 @@ spec: httpGet: path: /health port: 6061 - initialDelaySeconds: 30 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: diff --git a/templates/database/database-ss.yaml b/templates/database/database-ss.yaml index 091a4ef4f..f2a43f757 100644 --- a/templates/database/database-ss.yaml +++ b/templates/database/database-ss.yaml @@ -41,7 +41,7 @@ spec: exec: command: - /docker-healthcheck.sh - initialDelaySeconds: 60 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: exec: diff --git a/templates/jobservice/jobservice-dpl.yaml b/templates/jobservice/jobservice-dpl.yaml index 9d1e1c95b..222353925 100644 --- a/templates/jobservice/jobservice-dpl.yaml +++ b/templates/jobservice/jobservice-dpl.yaml @@ -32,7 +32,7 @@ spec: httpGet: path: /api/v1/stats port: 8080 - initialDelaySeconds: 20 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: diff --git a/templates/nginx/deployment.yaml b/templates/nginx/deployment.yaml index c9a927627..820028b78 100644 --- a/templates/nginx/deployment.yaml +++ b/templates/nginx/deployment.yaml @@ -38,7 +38,7 @@ spec: httpGet: path: / port: 80 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: diff --git a/templates/portal/deployment.yaml b/templates/portal/deployment.yaml index 8adcdc50e..6d2a8b6db 100644 --- a/templates/portal/deployment.yaml +++ b/templates/portal/deployment.yaml @@ -33,7 +33,7 @@ spec: httpGet: path: / port: 80 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: diff --git a/templates/redis/statefulset.yaml b/templates/redis/statefulset.yaml index 757f219c3..6e77f6b42 100644 --- a/templates/redis/statefulset.yaml +++ b/templates/redis/statefulset.yaml @@ -31,7 +31,7 @@ spec: livenessProbe: tcpSocket: port: 6379 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: tcpSocket: diff --git a/templates/registry/registry-dpl.yaml b/templates/registry/registry-dpl.yaml index 29de5af2a..1fff3c077 100644 --- a/templates/registry/registry-dpl.yaml +++ b/templates/registry/registry-dpl.yaml @@ -33,7 +33,7 @@ spec: httpGet: path: / port: 5000 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: @@ -74,7 +74,7 @@ spec: httpGet: path: /api/health port: 8080 - initialDelaySeconds: 1 + initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: