From bdbec67757c2f1fbd6b670f9323b605147102430 Mon Sep 17 00:00:00 2001 From: Marco Colli Date: Fri, 7 Jun 2024 16:44:45 +0200 Subject: [PATCH] Configure readiness probe with longer timeout for web proc In case of heavy load on web servers the GET request may take longer and the worst thing to do is remove an healthy web process during the traffic spike. --- lib/cuber/templates/deployment.yml.erb | 5 +++++ lib/cuber/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/cuber/templates/deployment.yml.erb b/lib/cuber/templates/deployment.yml.erb index 1bb213b..1f19b8f 100644 --- a/lib/cuber/templates/deployment.yml.erb +++ b/lib/cuber/templates/deployment.yml.erb @@ -197,6 +197,11 @@ spec: value: <%= URI.parse(@options[:health]).host.to_json %> - name: X-Forwarded-Proto value: <%= URI.parse(@options[:health]).scheme.to_json %> + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 <%- end -%> <%- if @options[:migrate] && @options[:migrate][:check] -%> initContainers: diff --git a/lib/cuber/version.rb b/lib/cuber/version.rb index 8139f1a..97d80c8 100644 --- a/lib/cuber/version.rb +++ b/lib/cuber/version.rb @@ -1,3 +1,3 @@ module Cuber - VERSION = '1.9.0'.freeze + VERSION = '1.10.0'.freeze end