summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes')
-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