Inconsistent probes prevented deploying on RHPDS (#67)

Signed-off-by: David Festal <dfestal@redhat.com>
pull/68/head
David Festal 2019-08-13 19:56:25 +02:00 committed by GitHub
parent eb409c634a
commit 831a776b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -112,9 +112,12 @@ func NewCheDeployment(cr *orgv1.CheCluster, cheImage string, cheTag string, cmRe
Scheme: corev1.URISchemeHTTP,
},
},
// After POD start, the POD will be seen as ready after a minimum of 15 seconds and we expect it to be seen as ready until a maximum of 200 seconds
// 200 s = InitialDelaySeconds + PeriodSeconds * (FailureThreshold - 1) + TimeoutSeconds
InitialDelaySeconds: 25,
FailureThreshold: 5,
FailureThreshold: 18,
TimeoutSeconds: 5,
PeriodSeconds: 10,
},
LivenessProbe: &corev1.Probe{
Handler: corev1.Handler{
@ -127,9 +130,11 @@ func NewCheDeployment(cr *orgv1.CheCluster, cheImage string, cheTag string, cmRe
Scheme: corev1.URISchemeHTTP,
},
},
InitialDelaySeconds: 50,
// After POD start, don't initiate liveness probe while the POD is still expected to be declared as ready by the readiness probe
InitialDelaySeconds: 200,
FailureThreshold: 3,
TimeoutSeconds: 3,
PeriodSeconds: 10,
},
EnvFrom: []corev1.EnvFromSource{
{