aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/k8s_vm_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_install.sh')
-rw-r--r--deployment/heat/onap-oom/k8s_vm_install.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/deployment/heat/onap-oom/k8s_vm_install.sh b/deployment/heat/onap-oom/k8s_vm_install.sh
index e5b843e5d..3e80f8ea0 100644
--- a/deployment/heat/onap-oom/k8s_vm_install.sh
+++ b/deployment/heat/onap-oom/k8s_vm_install.sh
@@ -16,14 +16,22 @@ echo "__docker_version__" > /opt/config/docker_version.txt
echo "__rancher_ip_addr__" > /opt/config/rancher_ip_addr.txt
echo "__rancher_private_ip_addr__" > /opt/config/rancher_private_ip_addr.txt
echo "__host_private_ip_addr__" > /opt/config/host_private_ip_addr.txt
+echo "__mtu__" > /opt/config/mtu.txt
mkdir -p /etc/docker
if [ ! -z "__docker_proxy__" ]; then
cat > /etc/docker/daemon.json <<EOF
{
+ "mtu": __mtu__,
"insecure-registries" : ["__docker_proxy__"]
}
EOF
+else
+ cat > /etc/docker/daemon.json <<EOF
+{
+ "mtu": __mtu__
+}
+EOF
fi
if [ ! -z "__apt_proxy__" ]; then
cat > /etc/apt/apt.conf.d/30proxy <<EOF