mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-17 18:26:55 +03:00
Add toggle to disable node subnet allocation (#13239)
Signed-off-by: Justin Lamp <justin.lamp@netways.de>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user