From: Sylvain Desbureaux Date: Mon, 6 Dec 2021 14:33:44 +0000 (+0100) Subject: [HOLMES] Use direct name for consul X-Git-Tag: 10.0.0~183^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F126088%2F1;p=oom.git [HOLMES] Use direct name for consul Holmes used to use external service name created by dcae bootstrap. As it's not created anymore by default, we need to give the right value for it. Issue-ID: DCAEGEN2-2968 Issue-ID: DCAEGEN2-2958 Issue-ID: DCAEGEN2-2983 Signed-off-by: Sylvain Desbureaux Change-Id: I07ca710c78401c8c4bfafda5673a50f7831bebf7 --- diff --git a/kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml b/kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml index 45c268c6b6..b625f6d72e 100644 --- a/kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml +++ b/kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml @@ -30,6 +30,9 @@ spec: - name: init-consul image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.consulLoaderImage }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + env: + - name: CONSUL_HOST + value: {{ .Values.consulHost | default "consul-server-ui" }}.{{ include "common.namespace" . }} args: - --key - holmes-engine-mgmt|/hemconfig/cfy.json diff --git a/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml b/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml index d757b75d68..19ccbc0cdc 100644 --- a/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml +++ b/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml @@ -30,6 +30,9 @@ spec: - name: init-consul image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.consulLoaderImage }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + env: + - name: CONSUL_HOST + value: {{ .Values.consulHost | default "consul-server-ui" }}.{{ include "common.namespace" . }} args: - --key - holmes-rule-mgmt|/hrmconfigs/cfy.json