diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-11-17 17:14:38 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-11-17 17:25:57 -0800 |
commit | b8be70a59f82cfb8473fe293f55111dbe2aff790 (patch) | |
tree | 436b59e9737fa0f8583632e3e350898734bf03c2 /deployment/heat/onap-oom/k8s_vm_install.sh | |
parent | cef8b722ac852acd0f2b8e6fe8e04e40a4665862 (diff) |
Add mtu parameter to OOM heat template
Change-Id: Ia478de1f3484fa9b32fe34cf0ec8a5defe118f2e
Issue-ID: INT-586
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_install.sh')
-rw-r--r-- | deployment/heat/onap-oom/k8s_vm_install.sh | 8 |
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 |