From 50f96f191222aa19e1ee89301460dcf34ea5d1b9 Mon Sep 17 00:00:00 2001 From: Rommel Pawar Date: Wed, 16 Nov 2022 10:11:24 -0800 Subject: [AAI] OOM AAI Rolling Update fixes Rolling update fixes for aai babel modelloader schema service traversal sparkybe Issue-ID: AAI-3605 Signed-off-by: Rommel Pawar Change-Id: Ia3949ce9e60542a7b0a4f69fb41ba86fe8399739 --- kubernetes/aai/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kubernetes/aai/templates') diff --git a/kubernetes/aai/templates/deployment.yaml b/kubernetes/aai/templates/deployment.yaml index 80fcebbef7..f17256b6e4 100644 --- a/kubernetes/aai/templates/deployment.yaml +++ b/kubernetes/aai/templates/deployment.yaml @@ -30,6 +30,13 @@ spec: matchLabels: app: {{ include "common.name" . }} replicas: {{ .Values.replicaCount }} + strategy: + type: {{ .Values.updateStrategy.type }} + {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }} + rollingUpdate: + maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }} + maxSurge: {{ .Values.updateStrategy.maxSurge }} + {{- end }} template: metadata: labels: @@ -39,6 +46,7 @@ spec: annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: + terminationGracePeriodSeconds: {{ .Values.service.terminationGracePeriodSeconds }} initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }} - command: - /app/ready.py -- cgit 1.2.3-korg