summaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-07-26 13:08:47 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-07-26 14:43:52 -0700
commitad51372fa9e16ef29bd35fa2ef18de55964e7f65 (patch)
treeaa9c54f2bcc3129ea477a3b6bdb5cb6c278d2ced /deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
parented95ca74e8bb4e085145d80fcdeb27a5bba3271f (diff)
Use OAM IPs for k8s connectivity
Use OAM IPs for k8s connectivity to reduce network congestion. Change-Id: Ia6114f1e4bf43578ee77c1d39ba36880f4c550d2 Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh')
-rwxr-xr-xdeployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh b/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
index e4968e048..33d2c3db8 100755
--- a/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
+++ b/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
@@ -49,6 +49,7 @@ cat <<EOF
__docker_proxy__: { get_param: docker_proxy }
__apt_proxy__: { get_param: apt_proxy }
__rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
+ __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
__integration_override_yaml__: { get_param: integration_override_yaml }
__gerrit_branch__: { get_param: gerrit_branch }
__gerrit_refspec__: { get_param: gerrit_refspec }
@@ -70,6 +71,18 @@ done
cat <<EOF
]
+ __k8s_private_ips__: [
+EOF
+
+for VM_NUM in $(seq $NUM_K8S_VMS); do
+ K8S_VM_NAME=k8s_$VM_NUM
+ cat <<EOF
+ get_attr: [${K8S_VM_NAME}_floating_ip, fixed_ip_address],
+EOF
+done
+
+cat <<EOF
+ ]
EOF
for VM_NUM in $(seq $NUM_K8S_VMS); do