aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/so-request-db-adapter/templates
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2025-02-24 16:39:18 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2025-02-25 14:42:58 +0100
commit95eb8a44f585981821b9f53b2a257233866bf4f9 (patch)
treea6ad736494ce44041621965cf6618bac29fd9b0b /kubernetes/so/components/so-request-db-adapter/templates
parent45df5ccf387520728ef69cead882333696ed3a90 (diff)
[SO] Leverage startup probe to avoid initialDelaySeconds of 10 minutes for k8s probes
- use startup probe to make so services available as early as possible - define revisionHistoryLimit - reduce default liveness period from 60 seconds to 20 seconds Issue-ID: SO-4144 Change-Id: Ibd84fe1ef2d5c7f55e580fb7cc7b0a4bedff0045 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'kubernetes/so/components/so-request-db-adapter/templates')
-rwxr-xr-xkubernetes/so/components/so-request-db-adapter/templates/deployment.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml b/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
index 329d45e480..93eef57795 100755
--- a/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
+++ b/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
@@ -19,6 +19,7 @@ metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ index .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
@@ -57,7 +58,8 @@ spec:
- name: config
mountPath: /app/config
readOnly: true
-{{ include "so.helpers.livenessProbe" .| indent 8 }}
+ {{- include "so.helpers.startupProbe" .| indent 8 }}
+ {{- include "so.helpers.livenessProbe" .| indent 8 }}
ports: {{- include "common.containerPorts" . | nindent 10 }}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes: