From 613593820ca0368523b38194968670facd2bddc2 Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Wed, 3 Oct 2018 11:14:49 -0600 Subject: [PATCH] fix omissions in vmss master --- parts/k8s/kubernetesmastercustomdatavmss.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/parts/k8s/kubernetesmastercustomdatavmss.yml b/parts/k8s/kubernetesmastercustomdatavmss.yml index 971eca8b38..caa0f7317b 100644 --- a/parts/k8s/kubernetesmastercustomdatavmss.yml +++ b/parts/k8s/kubernetesmastercustomdatavmss.yml @@ -399,6 +399,13 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER sed -i "s||{{WrapAsParameter "kubernetesIPMasqAgentMemoryRequests"}}|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" sed -i "s||{{WrapAsParameter "kubernetesIPMasqAgentCPULimit"}}|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" sed -i "s||{{WrapAsParameter "kubernetesIPMasqAgentMemoryLimit"}}|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" +{{if IsAzureCNI}} + sed -i "s||168.63.129.16/32|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" + sed -i "s||true|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" +{{else}} + sed -i "\||d" "/etc/kubernetes/addons/ip-masq-agent.yaml" + sed -i "s||false|g" "/etc/kubernetes/addons/ip-masq-agent.yaml" +{{end}} - path: "/opt/azure/containers/provision.sh" permissions: "0744"