mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-18 06:47:46 -02:30
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_lease_duration: 15s
|
||||||
kube_controller_manager_leader_elect_renew_deadline: 10s
|
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 modifies the discovery timeout
|
||||||
discovery_timeout: 5m0s
|
discovery_timeout: 5m0s
|
||||||
|
|
||||||
|
|||||||
@@ -365,14 +365,15 @@ controllerManager:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- name: service-cluster-ip-range
|
- name: service-cluster-ip-range
|
||||||
value: "{{ kube_service_subnets }}"
|
value: "{{ kube_service_subnets }}"
|
||||||
{% if (
|
{% if not kube_controller_manager_allocate_node_cidrs
|
||||||
kube_network_plugin is defined and
|
or kube_network_plugin is defined and (
|
||||||
kube_network_plugin == "calico" and
|
(
|
||||||
not calico_ipam_host_local
|
kube_network_plugin == "calico" and
|
||||||
) or (
|
not calico_ipam_host_local
|
||||||
kube_network_plugin is defined and
|
) or (
|
||||||
kube_network_plugin == "cilium" and
|
kube_network_plugin == "cilium" and
|
||||||
cilium_ipam_mode == "cluster-pool"
|
cilium_ipam_mode == "cluster-pool"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
%}
|
%}
|
||||||
- name: allocate-node-cidrs
|
- name: allocate-node-cidrs
|
||||||
|
|||||||
Reference in New Issue
Block a user