[AAI] OOM AAI Rolling Update fixes
[oom.git] / kubernetes / aai / components / aai-babel / templates / deployment.yaml
index bd6b8c7..e52ac7a 100644 (file)
@@ -31,6 +31,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:
@@ -70,6 +77,10 @@ spec:
             initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
             periodSeconds: {{ .Values.readiness.periodSeconds }}
           env:
+            {{- if not (include "common.needTLS" .) }}
+            - name: KEY_STORE_PASSWORD
+              value: NotUsed
+            {{- end }}
             - name: CONFIG_HOME
               value: /opt/app/babel/config
           volumeMounts:  {{ include "common.certInitializer.volumeMount" . | nindent 10 }}