Skip to content
Snippets Groups Projects
Unverified Commit cb0a2573 authored by Aivars Sterns's avatar Aivars Sterns Committed by GitHub
Browse files

Merge pull request #2819 from oleh-ozimok/fix-cidr-assert

Fix enough network address space assert
parents 69ea28e1 38f7ba25
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,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 <= ((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." 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment