Browse Source

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

Fix enough network address space assert
pull/2849/head
Aivars Sterns 6 years ago
committed by GitHub
parent
commit
cb0a257349
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/preinstall/tasks/verify-settings.yml

2
roles/kubernetes/preinstall/tasks/verify-settings.yml

@ -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:

Loading…
Cancel
Save