diff --git a/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 b/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 index eccc1b0b5..b1236f8af 100644 --- a/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 +++ b/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 @@ -306,7 +306,7 @@ controllerManager: cluster-cidr: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}" {% endif %} service-cluster-ip-range: "{{ kube_service_addresses }}{{ ',' + kube_service_addresses_ipv6 if enable_dual_stack_networks else '' }}" -{% if kube_network_plugin is defined and kube_network_plugin == "calico" and not calico_ipam_host_local or set_node_cidrs is defined and not set_node_cidrs "%} +{% if kube_network_plugin is defined and kube_network_plugin == "calico" and not calico_ipam_host_local or set_node_cidrs is defined and not set_node_cidrs %} allocate-node-cidrs: "false" {% else %} {% if enable_dual_stack_networks %}