[HOLMES] Use direct name for consul 88/126088/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 6 Dec 2021 14:33:44 +0000 (15:33 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 6 Dec 2021 14:33:44 +0000 (15:33 +0100)
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 <sylvain.desbureaux@orange.com>
Change-Id: I07ca710c78401c8c4bfafda5673a50f7831bebf7

kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml
kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml

index 45c268c..b625f6d 100644 (file)
@@ -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
index d757b75..19ccbc0 100644 (file)
@@ -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