From cd1d9f1915982a1c1ef875c9fdcbf6fff6e318f3 Mon Sep 17 00:00:00 2001 From: Roman Belyy <7323187+whiterm@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:38:04 -0700 Subject: [PATCH] Increase timeout for apiserver check --- .../bottlerocket-bootstrap/pkg/kubeadm/controlplane_init.go | 4 ++-- .../bottlerocket-bootstrap/pkg/kubeadm/controlplane_join.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_init.go b/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_init.go index 53f45bc1f8..ac0e96171e 100644 --- a/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_init.go +++ b/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_init.go @@ -86,14 +86,14 @@ func controlPlaneInit() error { } // Wait for Kubernetes API server to come up. - err = utils.WaitFor200(localApiServerReadinessEndpoint, 30*time.Second) + err = utils.WaitFor200(localApiServerReadinessEndpoint, 5*time.Minute) if err != nil { return err } // If the api advertise url is different than localhost, like when using kube-vip, make // sure it is accessible - err = utils.WaitFor200(string(apiServer)+"/healthz", 30*time.Second) + err = utils.WaitFor200(string(apiServer)+"/healthz", 5*time.Minute) if err != nil { return err } diff --git a/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_join.go b/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_join.go index 1458f1948d..86ce7fb4f7 100644 --- a/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_join.go +++ b/projects/aws/bottlerocket-bootstrap/pkg/kubeadm/controlplane_join.go @@ -106,12 +106,12 @@ func controlPlaneJoin() error { localApiServerReadinessEndpoint = "https://localhost:6443/healthz" } - err = utils.WaitFor200(localApiServerReadinessEndpoint, 30*time.Second) + err = utils.WaitFor200(localApiServerReadinessEndpoint, 5*time.Minute) if err != nil { return err } - err = utils.WaitFor200(string(apiServer)+"/healthz", 30*time.Second) + err = utils.WaitFor200(string(apiServer)+"/healthz", 5*time.Minute) if err != nil { return err }