summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-02-02 08:37:54 -0500
committerAlexis de Talhouët <adetalhouet89@gmail.com>2018-02-02 08:41:06 -0500
commitf1376d0fa41b8be8627d679eb8656138b15dad95 (patch)
treeea4b80229ec2bf9e7b17ca93b84283783c1fbe76
parentd6b2ea4c0e6299f5f75b84cfba31f99e474e8df2 (diff)
UEB port is not open on all K8S cluster's hosts
Change-Id: Ifc9c9bfe03dbc5b5f94e4c532d42b2c973748738 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Issue-ID: OOM-654
-rw-r--r--kubernetes/config/onap-parameters-sample.yaml8
-rw-r--r--kubernetes/config/onap-parameters.yaml8
-rw-r--r--kubernetes/dcaegen2/templates/nginx-service.yaml19
-rw-r--r--kubernetes/dcaegen2/values.yaml12
4 files changed, 46 insertions, 1 deletions
diff --git a/kubernetes/config/onap-parameters-sample.yaml b/kubernetes/config/onap-parameters-sample.yaml
index 2ce5a1c614..5f13bf80da 100644
--- a/kubernetes/config/onap-parameters-sample.yaml
+++ b/kubernetes/config/onap-parameters-sample.yaml
@@ -1,5 +1,13 @@
# For information regarding those parameters, please visit http://onap.readthedocs.io/en/latest/submodules/dcaegen2.git/docs/sections/installation_heat.html
+
+# --------------------------------------------- #
+# IMPORTANT:
+# If you're running a K8S cluster, please add #
+# your Node IPs in ../dcaegen2/values.yaml #
+# --------------------------------------------- #
+
+
#################
# COMMON CONFIG #
#################
diff --git a/kubernetes/config/onap-parameters.yaml b/kubernetes/config/onap-parameters.yaml
index 5a66d2ec97..65446ea5fe 100644
--- a/kubernetes/config/onap-parameters.yaml
+++ b/kubernetes/config/onap-parameters.yaml
@@ -1,5 +1,13 @@
# For information regarding those parameters, please visit http://onap.readthedocs.io/en/latest/submodules/dcaegen2.git/docs/sections/installation_heat.html
+
+# --------------------------------------------- #
+# IMPORTANT:
+# If you're running a K8S cluster, please add #
+# your Node IPs in ../dcaegen2/values.yaml #
+# --------------------------------------------- #
+
+
#################
# COMMON CONFIG #
#################
diff --git a/kubernetes/dcaegen2/templates/nginx-service.yaml b/kubernetes/dcaegen2/templates/nginx-service.yaml
index ce1600159c..3ed3e5697c 100644
--- a/kubernetes/dcaegen2/templates/nginx-service.yaml
+++ b/kubernetes/dcaegen2/templates/nginx-service.yaml
@@ -34,4 +34,23 @@ spec:
selector:
app: nginx
type: LoadBalancer
+ externalIPs:
+ {{ if .Values.externalIp1 }}
+ - {{ .Values.externalIp1 }}
+ {{ end }}
+ {{ if .Values.externalIp2 }}
+ - {{ .Values.externalIp2 }}
+ {{ end }}
+ {{ if .Values.externalIp3 }}
+ - {{ .Values.externalIp3 }}
+ {{ end }}
+ {{ if .Values.externalIp4 }}
+ - {{ .Values.externalIp4 }}
+ {{ end }}
+ {{ if .Values.externalIp5 }}
+ - {{ .Values.externalIp5 }}
+ {{ end }}
+ {{ if .Values.externalIp6 }}
+ - {{ .Values.externalIp6 }}
+ {{ end }}
externalTrafficPolicy: Local \ No newline at end of file
diff --git a/kubernetes/dcaegen2/values.yaml b/kubernetes/dcaegen2/values.yaml
index d446c6be9f..68cfac64e5 100644
--- a/kubernetes/dcaegen2/values.yaml
+++ b/kubernetes/dcaegen2/values.yaml
@@ -6,4 +6,14 @@ nginx:
tag: stable
heat_bootstrap:
repository: ubuntu
- tag: xenial \ No newline at end of file
+ tag: xenial
+
+# Those are the IPs of the nodes in your K8S cluster.
+# You don't need to touch this is you have just one node.
+# If you have more than 6 nodes, edit the templates/nginx-service.yaml to add more entries.
+externalIp1:
+externalIp2:
+externalIp3:
+externalIp4:
+externalIp5:
+externalIp6: \ No newline at end of file