From caa16069f2e7e9ed6b7ea37ada07ad7b79e67e60 Mon Sep 17 00:00:00 2001 From: kiweezi <46600706+kiweezi@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:53:02 +0000 Subject: [PATCH 1/2] Add larger initial delay to mc --- schema/minecraft_java.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/schema/minecraft_java.yaml b/schema/minecraft_java.yaml index 7f7ac7d..0ceb207 100644 --- a/schema/minecraft_java.yaml +++ b/schema/minecraft_java.yaml @@ -49,14 +49,13 @@ probes: command: - mc-health startupProbe: + initialDelaySeconds: 90 failureThreshold: 30 periodSeconds: 10 readinessProbe: - initialDelaySeconds: 30 periodSeconds: 5 failureThreshold: 20 successThreshold: 3 livenessProbe: - initialDelaySeconds: 30 periodSeconds: 5 failureThreshold: 20 \ No newline at end of file From 7fc762e05f091a9334dda94d65a9b458c01b6465 Mon Sep 17 00:00:00 2001 From: kiweezi <46600706+kiweezi@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:54:32 +0000 Subject: [PATCH 2/2] Update probe configurations in schema_test.go --- schema_test.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/schema_test.go b/schema_test.go index 1430944..20aec06 100644 --- a/schema_test.go +++ b/schema_test.go @@ -84,19 +84,18 @@ var exampleSchema Schema = Schema{ Probes: Probes{ Command: []string{"mc-health"}, StartupProbe: Probe{ - FailureThreshold: 30, - PeriodSeconds: 10, + InitialDelaySeconds: 90, + FailureThreshold: 30, + PeriodSeconds: 10, }, ReadinessProbe: Probe{ - InitialDelaySeconds: 30, - PeriodSeconds: 5, - FailureThreshold: 20, - SuccessThreshold: 3, + PeriodSeconds: 5, + FailureThreshold: 20, + SuccessThreshold: 3, }, LivenessProbe: Probe{ - InitialDelaySeconds: 30, - PeriodSeconds: 5, - FailureThreshold: 20, + PeriodSeconds: 5, + FailureThreshold: 20, }, }, }