add another option to disable allocating pod_cidrs
parent
1968db9a52
commit
3065c9ab1a
|
@ -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
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue