mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-02 09:18:55 -03:30
Added filters for integer conversion of kubelet_max_pods and kube_network_node_prefix (#3857)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
16715adfa0
commit
320f4d4d7f
@@ -75,7 +75,7 @@
|
|||||||
# NOTICE: the check blatantly ignores the inet6-case
|
# NOTICE: the check blatantly ignores the inet6-case
|
||||||
- name: Guarantee that enough network address space is available for all pods
|
- name: Guarantee that enough network address space is available for all pods
|
||||||
assert:
|
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."
|
msg: "Do not schedule more pods on a node than inet addresses are available."
|
||||||
ignore_errors: "{{ ignore_assert_errors }}"
|
ignore_errors: "{{ ignore_assert_errors }}"
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user