Skip to content
Snippets Groups Projects
Commit 27a99e0a authored by Neven Miculinic's avatar Neven Miculinic Committed by Kubernetes Prow Robot
Browse files

Added configurable min memory assertions (#4307)

parent 3cc351df
No related branches found
No related tags found
No related merge requests found
......@@ -49,3 +49,7 @@ etc_hosts_localhost_entries:
unexpected:
- localhost
- localhost.localdomain
# Minimal memory requirement in MB for safety checks
minimal_node_memory_mb: 1024
minimal_master_memory_mb: 1500
......@@ -60,13 +60,13 @@
- name: Stop if memory is too small for masters
assert:
that: ansible_memtotal_mb >= 1500
that: ansible_memtotal_mb >= minimal_master_memory_mb
ignore_errors: "{{ ignore_assert_errors }}"
when: inventory_hostname in groups['kube-master']
- name: Stop if memory is too small for nodes
assert:
that: ansible_memtotal_mb >= 1024
that: ansible_memtotal_mb >= minimal_node_memory_mb
ignore_errors: "{{ ignore_assert_errors }}"
when: inventory_hostname in groups['kube-node']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment