Skip to content

Commit 74c603c

Browse files
committed
Allow more time for the etcd cluster to start up
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 856fede commit 74c603c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/controller/factory/statefulset.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ func getStartupProbe() *corev1.Probe {
411411
Port: intstr.FromInt32(2381),
412412
},
413413
},
414-
PeriodSeconds: 5,
414+
PeriodSeconds: 5,
415+
FailureThreshold: 10,
415416
}
416417
}
417418

internal/controller/factory/statefulset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ var _ = Describe("CreateOrUpdateStatefulSet handler", func() {
217217
TimeoutSeconds: 1,
218218
PeriodSeconds: 5,
219219
SuccessThreshold: 1,
220-
FailureThreshold: 3,
220+
FailureThreshold: 10,
221221
}))
222222
})
223223

0 commit comments

Comments
 (0)