From f5ba7e3a4af502c973807eb6da6c1fee2084aeb2 Mon Sep 17 00:00:00 2001 From: "puthuparambil.aditya" Date: Tue, 14 Sep 2021 10:29:32 +0100 Subject: [CPS] Rolling update and prometheus changes 1. Rolling update for cps-core 2. Prometheus configuration 3. Image version update to I release 4. Only configurable parameters kept in application.yml Issue-ID: CPS-536, CPS-365, CPS-664 Signed-off-by: puthuparambil.aditya Change-Id: I33f47750bd3899f9a420256a1d9cef4cb63dff9e --- kubernetes/cps/components/cps-core/templates/deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kubernetes/cps/components/cps-core/templates/deployment.yaml') 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 -- cgit 1.2.3-korg