kubespray/roles/network_plugin
Max Gautier 8abf49ae13
Disable podCIDR allocation from control-plane when using calico (#10639)
* Disable control plane allocating podCIDR for nodes when using calico

Calico does not use the .spec.podCIDR field for its IP address
management.
Furthermore, it can false positives from the kube controller manager if
kube_network_node_prefix and calico_pool_blocksize are unaligned, which
is the case with the default shipped by kubespray.

If the subnets obtained from using kube_network_node_prefix are bigger,
this would result at some point in the control plane thinking it does
not have subnets left for a new node, while calico will work without
problems.

Explicitely set a default value of false for calico_ipam_host_local to
facilitate its use in templates.

* Don't default to kube_network_node_prefix for calico_pool_blocksize

They have different semantics: kube_network_node_prefix is intended to
be the size of the subnet for all pods on a node, while there can be
more than on calico block of the specified size (they are allocated on
demand).

Besides, this commit does not actually change anything, because the
current code is buggy: we don't ever default to
kube_network_node_prefix, since the variable is defined in the role
defaults.
2023-12-12 14:38:36 +01:00
..
calico Disable podCIDR allocation from control-plane when using calico (#10639) 2023-12-12 14:38:36 +01:00
calico_defaults/defaults Disable podCIDR allocation from control-plane when using calico (#10639) 2023-12-12 14:38:36 +01:00
cilium configure cluster-name for hubble relay (#10614) 2023-11-13 19:22:40 +01:00
cni/tasks fix: specify owner to kube_owner in task of copy cni plugins (#10407) 2023-09-04 02:29:49 -07:00
custom_cni Add helm support for custom_cni deployment (#10529) 2023-11-16 00:32:21 +01:00
flannel Resolve ansible-lint name errors (#10253) 2023-07-26 07:36:22 -07:00
kube-ovn project: fix var-spacing ansible rule (#10266) 2023-07-04 20:36:54 -07:00
kube-router Refactor "multi" handlers to use listen (#10542) 2023-11-08 12:28:30 +01:00
macvlan ipaddr (deprecated alias) => ansible.utils.ipaddr (#10650) 2023-11-28 09:56:55 +01:00
meta Drop canal network_plugin (#10100) 2023-05-18 03:40:33 -07:00
multus project: fix var-spacing ansible rule (#10266) 2023-07-04 20:36:54 -07:00
ovn4nfv/tasks Resolve ansible-lint name errors (#10253) 2023-07-26 07:36:22 -07:00
weave pre-commit autocorrected files (#9750) 2023-02-06 01:35:16 -08:00