From e589ceb6610b139c6cd85ca4d0f569e4a7487b07 Mon Sep 17 00:00:00 2001 From: Stanislav Zaprudskiy Date: Thu, 26 Jan 2023 14:53:32 +0100 Subject: [PATCH] When applying Deployment wait up to (timeout * replicas) There are cases when having a new Deployment may be taking above the default timeout of 120s. For instance, when a Deployment has multiple replicas, and each replica starts on a separate node, and the Deployment specifies new images, then just pulling these new images for each replica may be taking above the default timeout of 120s. Having the default time multiplied by the number of replicas should provide generally enough time for all replicas to start --- roles/installer/tasks/resources_configuration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/installer/tasks/resources_configuration.yml b/roles/installer/tasks/resources_configuration.yml index ab202266..64c73cf0 100644 --- a/roles/installer/tasks/resources_configuration.yml +++ b/roles/installer/tasks/resources_configuration.yml @@ -210,6 +210,7 @@ apply: yes definition: "{{ lookup('template', 'deployments/deployment.yaml.j2') }}" wait: yes + wait_timeout: "{{ 120 * replicas or 120 }}" register: this_deployment_result - block: