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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
2c7c956b
Commit
2c7c956b
authored
7 years ago
by
mkrasilnikov
Browse files
Options
Downloads
Patches
Plain Diff
Disable swap in vagrant vms
parent
ba0a03a8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Vagrantfile
+3
-0
3 additions, 0 deletions
Vagrantfile
roles/kubernetes/preinstall/tasks/verify-settings.yml
+6
-0
6 additions, 0 deletions
roles/kubernetes/preinstall/tasks/verify-settings.yml
with
9 additions
and
0 deletions
Vagrantfile
+
3
−
0
View file @
2c7c956b
...
...
@@ -129,6 +129,9 @@ Vagrant.configure("2") do |config|
config
.
vm
.
provision
"shell"
,
inline:
"service network restart"
,
run:
"always"
end
# Disable swap for each vm
config
.
vm
.
provision
"shell"
,
inline:
"swapoff -a"
# Only execute once the Ansible provisioner,
# when all the machines are up and ready.
if
i
==
$num_instances
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/verify-settings.yml
+
6
−
0
View file @
2c7c956b
...
...
@@ -71,3 +71,9 @@
command
:
ping -c1 {{ access_ip }}
when
:
access_ip is defined
ignore_errors
:
"
{{
ignore_assert_errors
}}"
-
name
:
Stop if swap enabled
assert
:
that
:
ansible_swaptotal_mb ==
0
when
:
kubelet_fail_swap_on|default(true)
ignore_errors
:
"
{{
ignore_assert_errors
}}"
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