From 320f4d4d7fc19e86570da1fdc4d6bb11a49b4c8e Mon Sep 17 00:00:00 2001 From: Gautam Divgi Date: Wed, 26 Dec 2018 15:58:53 -0600 Subject: [PATCH] Added filters for integer conversion of kubelet_max_pods and kube_network_node_prefix (#3857) --- roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index ff8d6ffc8..9fa509f8d 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -75,7 +75,7 @@ # NOTICE: the check blatantly ignores the inet6-case - name: Guarantee that enough network address space is available for all pods assert: - that: "{{ kubelet_max_pods | default(110) <= (2 ** (32 - kube_network_node_prefix)) - 2 }}" + that: "{{ (kubelet_max_pods | default(110)) | int <= (2 ** (32 - kube_network_node_prefix | int)) - 2 }}" msg: "Do not schedule more pods on a node than inet addresses are available." ignore_errors: "{{ ignore_assert_errors }}" when: