diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2022-11-23 07:57:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-11-23 07:57:54 +0000 |
commit | 5c963c5463e01bfd611ae98232a48f8c8c9fda5a (patch) | |
tree | 2d606bfced13496a3aa55d8b32297b89cc78df5f /kubernetes/aai/templates | |
parent | c8eab2e03d63092d0229ee2aeecbfc5ab3fcb841 (diff) | |
parent | 50f96f191222aa19e1ee89301460dcf34ea5d1b9 (diff) |
Merge "[AAI] OOM AAI Rolling Update fixes" into kohn
Diffstat (limited to 'kubernetes/aai/templates')
-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 1b71c07bcb..f1d10e2c81 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 |