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/components/aai-schema-service | |
parent | c8eab2e03d63092d0229ee2aeecbfc5ab3fcb841 (diff) | |
parent | 50f96f191222aa19e1ee89301460dcf34ea5d1b9 (diff) |
Merge "[AAI] OOM AAI Rolling Update fixes" into kohn
Diffstat (limited to 'kubernetes/aai/components/aai-schema-service')
-rw-r--r-- | kubernetes/aai/components/aai-schema-service/templates/deployment.yaml | 7 | ||||
-rw-r--r-- | kubernetes/aai/components/aai-schema-service/values.yaml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/kubernetes/aai/components/aai-schema-service/templates/deployment.yaml b/kubernetes/aai/components/aai-schema-service/templates/deployment.yaml index cd58b959ad..8a7c43f0b9 100644 --- a/kubernetes/aai/components/aai-schema-service/templates/deployment.yaml +++ b/kubernetes/aai/components/aai-schema-service/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-schema-service/values.yaml b/kubernetes/aai/components/aai-schema-service/values.yaml index a72b1d9ec1..50e12e8e4d 100644 --- a/kubernetes/aai/components/aai-schema-service/values.yaml +++ b/kubernetes/aai/components/aai-schema-service/values.yaml @@ -101,6 +101,11 @@ flavorOverride: small # default number of instances replicaCount: 1 +updateStrategy: + type: RollingUpdate + maxUnavailable: 0 + maxSurge: 1 + nodeSelector: {} affinity: {} |