From 85d9e3e2aef98e06ed6116d9ed0715fc6fc46b68 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Mon, 20 Jan 2025 10:38:19 +0100 Subject: [PATCH] Don't check address space when using 'none' network plugin Since 'none' can be, for instance, a manual calico deployment, don't check whether there is enough ip for pods on a node, because the plugin can use another mechanism than the podCIDR to allocate IPs. --- roles/kubernetes/preinstall/tasks/0040-verify-settings.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml index ade00a13c..83d6fa963 100644 --- a/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml @@ -112,8 +112,7 @@ when: - not ignore_assert_errors - ('k8s_cluster' in group_names) - - kube_network_node_prefix is defined - - kube_network_plugin != 'calico' + - kube_network_plugin not in ['calico', 'none'] - name: Stop if ip var does not match local ips assert: