Set dns server to mirantis internal
Related-Prod: PRODX-2063
Change-Id: I5d8636df671160a0c0b08875f81e2a3ce81479cb
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 1226ede..ab76dd0 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -101,9 +101,12 @@
}
function create_ucp_config {
- echo "[scheduling_configuration]
+ echo "
+[scheduling_configuration]
enable_admin_ucp_scheduling = true
- default_node_orchestrator = \"kubernetes\"" | docker config create com.docker.ucp.config -
+ default_node_orchestrator = \"kubernetes\"
+[cluster_config table]
+ dns = 172.18.208.44" | docker config create com.docker.ucp.config -
}
function swarm_init {
@@ -120,9 +123,14 @@
mv kubectl /usr/local/bin/
}
+function prepare_network {
+ systemctl restart systemd-resolved
+}
+
case "$NODE_TYPE" in
ucp)
+ prepare_network
update_docker_network
install_docker_ce
swarm_init
@@ -133,6 +141,7 @@
install_kubectl
;;
master)
+ prepare_network
update_docker_network
install_docker_ce
download_bundles
@@ -140,6 +149,7 @@
install_kubectl
;;
worker)
+ prepare_network
update_docker_network
install_docker_ce
download_bundles