kubespray/roles
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
..
adduser Update to ansible 2.15 (#10481) 2023-11-15 09:39:09 +01:00
bastion-ssh-config Update to ansible 2.15 (#10481) 2023-11-15 09:39:09 +01:00
bootstrap-os fix: flatcar bootstrap (#10363) 2023-08-18 08:14:29 -07:00
container-engine Remove legacy crio packaging cleanup (#10702) 2023-12-11 15:41:13 +01:00
download Decouple kubespray-defaults from download (#10626) 2023-12-11 16:56:17 +01:00
etcd etcd: use dynamic group for certs generation check (#10610) 2023-12-12 11:22:29 +01:00
etcdctl_etcdutl fix copy etcdctl retries (#10634) 2023-11-28 10:52:03 +01:00
helm-apps Fix outdated tag and experimental ansible-lint rules (#10254) 2023-06-30 02:51:57 -07:00
kubernetes Disable podCIDR allocation from control-plane when using calico (#10639) 2023-12-12 14:38:36 +01:00
kubernetes-apps Remove unneeded workaround for removing kubeadm DNS (#10695) 2023-12-07 12:54:15 +01:00
kubespray-defaults Decouple kubespray-defaults from download (#10626) 2023-12-11 16:56:17 +01:00
network_plugin Disable podCIDR allocation from control-plane when using calico (#10639) 2023-12-12 14:38:36 +01:00
recover_control_plane Fixup recover control plane playbook + add debian12/cilium test (#10411) 2023-09-05 10:42:52 -07:00
remove-node Resolve ansible-lint name errors (#10253) 2023-07-26 07:36:22 -07:00
reset Fix restart network task cannot be skipped (#10512) 2023-10-11 05:50:37 +02:00
upgrade pre-upgrade cleanup (#10656) 2023-11-28 22:49:56 +01:00
win_nodes/kubernetes_patch project: resolve ansible-lint key-order rule (#10314) 2023-08-10 00:57:27 -07:00