From 78a30170f4cb78b708fa7417fb66b95dbb3dfd51 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Fri, 5 Jan 2018 15:22:50 -0500 Subject: Add aai and mso FQDN in drools /etc/hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .api.simpledemo.openecomp.org See https://jira.onap.org/browse/POLICY-510 This is a temporary solution. Assign a static IP address to aai-service and inject it in the /etc/hosts of drools. Change-Id: I52c25225e63be9d9dfb9c92836f2b16da9f2b813 Issue-ID: OOM-549 Signed-off-by: Alexis de Talhouët --- kubernetes/policy/templates/dep-drools.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kubernetes/policy/templates') diff --git a/kubernetes/policy/templates/dep-drools.yaml b/kubernetes/policy/templates/dep-drools.yaml index fe52f25708..1558b65d18 100644 --- a/kubernetes/policy/templates/dep-drools.yaml +++ b/kubernetes/policy/templates/dep-drools.yaml @@ -43,6 +43,10 @@ spec: } ]' spec: + hostAliases: + - ip: "{{ .Values.aaiServiceClusterIp }}" + hostnames: + - "aai.api.simpledemo.openecomp.org" containers: - image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}" imagePullPolicy: {{ .Values.pullPolicy }} -- cgit 1.2.3-korg