add another option to disable allocating pod_cidrs

pull/11300/head
Stella Alice Schlotter 2024-06-17 10:55:35 +02:00 committed by Stella Alice Schlotter
parent 1968db9a52
commit 3065c9ab1a
2 changed files with 4 additions and 1 deletions

View File

@ -374,3 +374,6 @@ kubeadm_patches:
# Set to true to remove the role binding to anonymous users created by kubeadm
remove_anonymous_access: false
# disable allocating pod cidrs by the controller manager
set_node_cidrs: false

View File

@ -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 %}
{% 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 %}