Add DCAE postgres instance
patchset #3 Add ExternalName service to provide alternate name
for consul in the common namespace. Needed for
compatibility with CM plugin.
patchset #2 Fix Holmes inputs to use correct postgres address.
Minor fixes for ves and tca.
Change-Id: Iacfef5a34ab5d2f365dcc6fc160816f80dfa7b69
Issue-ID: DCAEGEN2-477
Signed-off-by: Jack Lucas <jflucas@research.att.com>
diff --git a/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/service.yaml b/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/service.yaml
index c6b24ee..4b76523 100644
--- a/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/service.yaml
+++ b/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/service.yaml
@@ -63,4 +63,13 @@
type: ExternalName
externalName: {{ .Values.service.name }}.{{ include "common.namespace" . }}.svc.cluster.local
{{ end }}
-
+# Provide alternate name for consul in common namespace to support CM plugin discovery
+apiVersion: v1
+kind: Service
+metadata:
+ name: consul
+ namespace: {{ include "common.namespace" . }}
+spec:
+ type: ExternalName
+ externalName: {{ .Values.config.address.consul.host }}.{{ include "common.namespace" . }}.svc.cluster.local
+---