summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-01-05 15:22:50 -0500
committerAlexis de Talhouët <adetalhouet89@gmail.com>2018-01-16 16:06:30 -0500
commit78a30170f4cb78b708fa7417fb66b95dbb3dfd51 (patch)
tree0ee34c3e81192054a14da87c9ac35116125e1170 /kubernetes/policy
parentccb051441f45e5cf7ee4fa8e59726e794741a2c9 (diff)
Add aai and mso FQDN in drools /etc/hosts
.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 <adetalhouet89@gmail.com>
Diffstat (limited to 'kubernetes/policy')
-rw-r--r--kubernetes/policy/templates/dep-drools.yaml4
-rw-r--r--kubernetes/policy/values.yaml5
2 files changed, 9 insertions, 0 deletions
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 }}
diff --git a/kubernetes/policy/values.yaml b/kubernetes/policy/values.yaml
index ce037d896d..f52dc445e6 100644
--- a/kubernetes/policy/values.yaml
+++ b/kubernetes/policy/values.yaml
@@ -1,6 +1,11 @@
nsPrefix: onap
pullPolicy: Always
nodePortPrefix: 302
+
+# POLICY hotfix - Note this must be temporary
+# See https://jira.onap.org/browse/POLICY-510
+aaiServiceClusterIp: 10.43.255.254
+
image:
readiness: oomk8s/readiness-check
readinessVersion: 1.0.0