diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-09-23 14:45:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-09-23 14:45:55 +0000 |
commit | c191f3850b7d96779df16fec59c59f55a994e226 (patch) | |
tree | dcbc0aab353a100151cecbd70b4d9d50517b9cdb /kubernetes/cps/components/cps-core/templates/deployment.yaml | |
parent | 399e4f083187cc7021faf72f55a1c8332c82bdb8 (diff) | |
parent | f5ba7e3a4af502c973807eb6da6c1fee2084aeb2 (diff) |
Merge "[CPS] Rolling update and prometheus changes"
Diffstat (limited to 'kubernetes/cps/components/cps-core/templates/deployment.yaml')
-rw-r--r-- | kubernetes/cps/components/cps-core/templates/deployment.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/cps/components/cps-core/templates/deployment.yaml b/kubernetes/cps/components/cps-core/templates/deployment.yaml index 2047a39497..e6ee161feb 100644 --- a/kubernetes/cps/components/cps-core/templates/deployment.yaml +++ b/kubernetes/cps/components/cps-core/templates/deployment.yaml @@ -21,6 +21,12 @@ kind: Deployment metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: replicas: {{ .Values.replicaCount }} + minReadySeconds: {{ index .Values.minReadySeconds }} + strategy: + type: {{ index .Values.updateStrategy.type }} + rollingUpdate: + maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }} + maxSurge: {{ index .Values.updateStrategy.maxSurge }} selector: {{- include "common.selectors" . | nindent 4 }} template: metadata: {{- include "common.templateMetadata" . | nindent 6 }} @@ -47,6 +53,11 @@ spec: {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "app-user-creds" "key" "login") | indent 12 }} - name: CPS_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "app-user-creds" "key" "password") | indent 12 }} + - name: DMI_USERNAME + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmi-plugin-user-creds" "key" "login") | indent 12 }} + - name: DMI_PASSWORD + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmi-plugin-user-creds" "key" "password") | indent 12 }} + volumeMounts: - mountPath: /config-input name: init-data-input |