Change calico vxlan port to docker swarm tunnel port
Related-Prod: PRODX-3456
Change-Id: Ib7f2c004ddae3866aab4ce80739fa134006937ed
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 6bfa35b..19f4919 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -114,6 +114,7 @@
UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
# Change default VXLAN port, need for https://mirantis.jira.com/browse/PRODX-11679
UCP_DOCKER_SWARM_DATA_PORT=${UCP_DOCKER_SWARM_DATA_PORT:-4789}
+UCP_DOCKER_CALICO_VXLAN_PORT=${UCP_DOCKER_CALICO_VXLAN_PORT:-${UCP_DOCKER_SWARM_DATA_PORT}}
NTP_SERVERS=${NTP_SERVERS:-"ldap.scc.mirantis.net ldap.bud.mirantis.net"}
IRONIC_BAREMETAL_VXLAN_INTERFACE='vxlan10'
HUGE_PAGES_1G_SIZE=$(echo "${HUGE_PAGES}" | awk -F ',' '{print $1}')
@@ -471,6 +472,7 @@
default_node_orchestrator = \"kubernetes\"
[cluster_config]
dns = [\"172.18.208.44\"]
+ calico_vxlan_port = \"$UCP_DOCKER_CALICO_VXLAN_PORT\"
${max_pods}
${secure_overlay}
" | docker config create com.docker.ucp.config -