From 628a13afb44011803b386023a879c0935635a5bc Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Thu, 26 Jan 2023 18:31:28 +0300 Subject: [PATCH 1/6] Replace startupProbe with redinessProbe --- chart/templates/sts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/sts.yaml b/chart/templates/sts.yaml index 9749ffea..878e2cca 100644 --- a/chart/templates/sts.yaml +++ b/chart/templates/sts.yaml @@ -44,7 +44,7 @@ spec: port: {{ .Values.clusterService.ports.http }} initialDelaySeconds: 5 periodSeconds: 5 - startupProbe: + readinessProbe: httpGet: path: /api/v1/healthz port: {{ .Values.clusterService.ports.http }} From 02ea202356fd404df0f99fe7e9a22d3dd2141efe Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Thu, 26 Jan 2023 19:10:22 +0300 Subject: [PATCH 2/6] Set minReadySeconds to 5 sec --- chart/templates/sts.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/templates/sts.yaml b/chart/templates/sts.yaml index 878e2cca..61ba190d 100644 --- a/chart/templates/sts.yaml +++ b/chart/templates/sts.yaml @@ -10,6 +10,7 @@ spec: selector: matchLabels: {{- include "dispatcher.selectorLabels" . | nindent 6 }} + minReadySeconds: 5 template: metadata: annotations: From c8c4967e1dd49ebf8e4872f99d84c65cc2642321 Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Thu, 26 Jan 2023 19:19:41 +0300 Subject: [PATCH 3/6] Decrease minReadySeconds to 1 sec --- chart/templates/sts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/sts.yaml b/chart/templates/sts.yaml index 61ba190d..68b3398f 100644 --- a/chart/templates/sts.yaml +++ b/chart/templates/sts.yaml @@ -10,7 +10,7 @@ spec: selector: matchLabels: {{- include "dispatcher.selectorLabels" . | nindent 6 }} - minReadySeconds: 5 + minReadySeconds: 1 template: metadata: annotations: From 05c843108304ea9ce4637beb8fa271cd3ae178d6 Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Thu, 26 Jan 2023 19:25:54 +0300 Subject: [PATCH 4/6] Decrease minReadySeconds to 2 sec --- chart/templates/sts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/sts.yaml b/chart/templates/sts.yaml index 68b3398f..960eaa08 100644 --- a/chart/templates/sts.yaml +++ b/chart/templates/sts.yaml @@ -10,7 +10,7 @@ spec: selector: matchLabels: {{- include "dispatcher.selectorLabels" . | nindent 6 }} - minReadySeconds: 1 + minReadySeconds: 2 template: metadata: annotations: From 00413042024725394f4bd524f582190086e1be23 Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Fri, 27 Jan 2023 16:19:22 +0300 Subject: [PATCH 5/6] Set minReadySeconds to 5 sec --- chart/templates/sts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/sts.yaml b/chart/templates/sts.yaml index 960eaa08..61ba190d 100644 --- a/chart/templates/sts.yaml +++ b/chart/templates/sts.yaml @@ -10,7 +10,7 @@ spec: selector: matchLabels: {{- include "dispatcher.selectorLabels" . | nindent 6 }} - minReadySeconds: 2 + minReadySeconds: 5 template: metadata: annotations: From 698fbdfc8ab9c34b0fc8d38658520a18b8b2e29b Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Fri, 27 Jan 2023 16:20:43 +0300 Subject: [PATCH 6/6] Update pdb for Dispatcher --- chart/templates/pdb.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/pdb.yaml b/chart/templates/pdb.yaml index 86ba7ff2..2dfe3dcf 100644 --- a/chart/templates/pdb.yaml +++ b/chart/templates/pdb.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "dispatcher.fullname" . }}