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"