Fix enough network address space assert

This commit is contained in:
Oleg Ozimok 2018-05-27 18:01:17 +03:00 committed by Oleg Ozimok
parent c4b1808983
commit 38f7ba2584

View file

@ -68,7 +68,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 <= ((32 - kube_network_node_prefix) ** 2) - 2 }}"
that: "{{ kubelet_max_pods <= (2 ** (32 - kube_network_node_prefix)) - 2 }}"
msg: "Do not schedule more pods on a node than inet addresses are available."
ignore_errors: "{{ ignore_assert_errors }}"
when: