From f1376d0fa41b8be8627d679eb8656138b15dad95 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Fri, 2 Feb 2018 08:37:54 -0500 Subject: UEB port is not open on all K8S cluster's hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifc9c9bfe03dbc5b5f94e4c532d42b2c973748738 Signed-off-by: Alexis de Talhouët Issue-ID: OOM-654 --- kubernetes/config/onap-parameters-sample.yaml | 8 ++++++++ kubernetes/config/onap-parameters.yaml | 8 ++++++++ kubernetes/dcaegen2/templates/nginx-service.yaml | 19 +++++++++++++++++++ kubernetes/dcaegen2/values.yaml | 12 +++++++++++- 4 files changed, 46 insertions(+), 1 deletion(-) 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 -- cgit 1.2.3-korg