Add toggle to disable node subnet allocation (#13239)

Signed-off-by: Justin Lamp <justin.lamp@netways.de>
This commit is contained in:
Justin Lamp
2026-05-16 08:04:34 +02:00
committed by GitHub
parent 2ac815147b
commit 8c3f6270f8
2 changed files with 12 additions and 8 deletions

View File

@@ -41,6 +41,9 @@ control_plane_health_retries: 60 # Default retries for apiserver, scheduler, co
kube_controller_manager_leader_elect_lease_duration: 15s
kube_controller_manager_leader_elect_renew_deadline: 10s
# Controls whether or not the kube_controller_manager allocates subnets for the node object
kube_controller_manager_allocate_node_cidrs: true
# discovery_timeout modifies the discovery timeout
discovery_timeout: 5m0s

View File

@@ -365,14 +365,15 @@ controllerManager:
{% endif %}
- name: service-cluster-ip-range
value: "{{ kube_service_subnets }}"
{% if (
kube_network_plugin is defined and
kube_network_plugin == "calico" and
not calico_ipam_host_local
) or (
kube_network_plugin is defined and
kube_network_plugin == "cilium" and
cilium_ipam_mode == "cluster-pool"
{% if not kube_controller_manager_allocate_node_cidrs
or kube_network_plugin is defined and (
(
kube_network_plugin == "calico" and
not calico_ipam_host_local
) or (
kube_network_plugin == "cilium" and
cilium_ipam_mode == "cluster-pool"
)
)
%}
- name: allocate-node-cidrs