Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
27a99e0a
Commit
27a99e0a
authored
6 years ago
by
Neven Miculinic
Committed by
Kubernetes Prow Robot
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added configurable min memory assertions (#4307)
parent
3cc351df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/kubernetes/preinstall/defaults/main.yml
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
+2
-2
2 additions, 2 deletions
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
with
6 additions
and
2 deletions
roles/kubernetes/preinstall/defaults/main.yml
+
4
−
0
View file @
27a99e0a
...
@@ -49,3 +49,7 @@ etc_hosts_localhost_entries:
...
@@ -49,3 +49,7 @@ etc_hosts_localhost_entries:
unexpected
:
unexpected
:
-
localhost
-
localhost
-
localhost.localdomain
-
localhost.localdomain
# Minimal memory requirement in MB for safety checks
minimal_node_memory_mb
:
1024
minimal_master_memory_mb
:
1500
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
+
2
−
2
View file @
27a99e0a
...
@@ -60,13 +60,13 @@
...
@@ -60,13 +60,13 @@
-
name
:
Stop if memory is too small for masters
-
name
:
Stop if memory is too small for masters
assert
:
assert
:
that
:
ansible_memtotal_mb >=
1500
that
:
ansible_memtotal_mb >=
minimal_master_memory_mb
ignore_errors
:
"
{{
ignore_assert_errors
}}"
ignore_errors
:
"
{{
ignore_assert_errors
}}"
when
:
inventory_hostname in groups['kube-master']
when
:
inventory_hostname in groups['kube-master']
-
name
:
Stop if memory is too small for nodes
-
name
:
Stop if memory is too small for nodes
assert
:
assert
:
that
:
ansible_memtotal_mb >=
1024
that
:
ansible_memtotal_mb >=
minimal_node_memory_mb
ignore_errors
:
"
{{
ignore_assert_errors
}}"
ignore_errors
:
"
{{
ignore_assert_errors
}}"
when
:
inventory_hostname in groups['kube-node']
when
:
inventory_hostname in groups['kube-node']
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment