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
fa9f85c7
Unverified
Commit
fa9f85c7
authored
3 years ago
by
Cristian Calin
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[sysctl] set fs.may_detach_mounts=1 even when CRIs don't set it themselves (#8635)
parent
ffa285c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/preinstall/tasks/0080-system-configurations.yml
+18
-0
18 additions, 0 deletions
...ubernetes/preinstall/tasks/0080-system-configurations.yml
with
18 additions
and
0 deletions
roles/kubernetes/preinstall/tasks/0080-system-configurations.yml
+
18
−
0
View file @
fa9f85c7
...
@@ -87,6 +87,24 @@
...
@@ -87,6 +87,24 @@
reload
:
yes
reload
:
yes
when
:
enable_dual_stack_networks | bool
when
:
enable_dual_stack_networks | bool
-
name
:
Check if we need to set fs.may_detach_mounts
stat
:
path
:
/proc/sys/fs/may_detach_mounts
get_attributes
:
no
get_checksum
:
no
get_mime
:
no
register
:
fs_may_detach_mounts
ignore_errors
:
true
# noqa ignore-errors
-
name
:
Set fs.may_detach_mounts if needed
sysctl
:
sysctl_file
:
"
{{
sysctl_file_path
}}"
name
:
fs.may_detach_mounts
value
:
1
state
:
present
reload
:
yes
when
:
fs_may_detach_mounts.stat.exists | d(false)
-
name
:
Ensure kube-bench parameters are set
-
name
:
Ensure kube-bench parameters are set
sysctl
:
sysctl
:
sysctl_file
:
"
{{
sysctl_file_path
}}"
sysctl_file
:
"
{{
sysctl_file_path
}}"
...
...
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