diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2022-11-24 10:30:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-11-24 10:30:21 +0000 |
commit | 7e1f3b9272e4bcc3efaf7f323806f56a28e9a532 (patch) | |
tree | 7cef216db41b242514f8b02da08356f26b845092 /kubernetes/aai/templates/deployment.yaml | |
parent | 99e46fbb376c2bb8a3968535c4c554ef56449d29 (diff) | |
parent | 3422429423cda9822dddad6d54100033d7110fc4 (diff) |
Merge "[AAI] OOM AAI Rolling Update fixes" into jakarta
Diffstat (limited to 'kubernetes/aai/templates/deployment.yaml')
-rw-r--r-- | kubernetes/aai/templates/deployment.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
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 |