diff options
author | Rommel Pawar <rommel.pawar@bell.ca> | 2022-11-16 10:11:24 -0800 |
---|---|---|
committer | leila <leila.nishimwe@bell.ca> | 2022-11-21 11:50:06 -0500 |
commit | 50f96f191222aa19e1ee89301460dcf34ea5d1b9 (patch) | |
tree | 00588a0fedaeba9c38dc26f53d0357d485a86fa7 /kubernetes/aai/components/aai-modelloader | |
parent | a28b4eed110835d6179bfdc7b11354a0d068454e (diff) |
[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 <rommel.pawar@bell.ca>
Change-Id: Ia3949ce9e60542a7b0a4f69fb41ba86fe8399739
Diffstat (limited to 'kubernetes/aai/components/aai-modelloader')
-rw-r--r-- | kubernetes/aai/components/aai-modelloader/templates/deployment.yaml | 7 | ||||
-rw-r--r-- | kubernetes/aai/components/aai-modelloader/values.yaml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/kubernetes/aai/components/aai-modelloader/templates/deployment.yaml b/kubernetes/aai/components/aai-modelloader/templates/deployment.yaml index 47c13af86e..8e481b9656 100644 --- a/kubernetes/aai/components/aai-modelloader/templates/deployment.yaml +++ b/kubernetes/aai/components/aai-modelloader/templates/deployment.yaml @@ -28,6 +28,13 @@ metadata: heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} + strategy: + type: {{ .Values.updateStrategy.type }} + {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }} + rollingUpdate: + maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }} + maxSurge: {{ .Values.updateStrategy.maxSurge }} + {{- end }} selector: matchLabels: app: {{ include "common.name" . }} diff --git a/kubernetes/aai/components/aai-modelloader/values.yaml b/kubernetes/aai/components/aai-modelloader/values.yaml index 7857f6bc92..1188f9b645 100644 --- a/kubernetes/aai/components/aai-modelloader/values.yaml +++ b/kubernetes/aai/components/aai-modelloader/values.yaml @@ -67,6 +67,11 @@ config: {} # default number of instances replicaCount: 1 +updateStrategy: + type: RollingUpdate + maxUnavailable: 0 + maxSurge: 1 + nodeSelector: {} affinity: {} |