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
ce2642f2
Unverified
Commit
ce2642f2
authored
10 months ago
by
Franz Nemeth
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: Adding a check which determines if cgroups are enabled on a node (#11163) (#11165)
parent
5dc12b2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
+7
-0
7 additions, 0 deletions
roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
with
7 additions
and
0 deletions
roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
+
7
−
0
View file @
ce2642f2
...
...
@@ -77,6 +77,13 @@
-
not ignore_assert_errors
-
inventory_hostname in groups['kube_node']
# This command will fail if cgroups are not enabled on the node.
# For reference: https://kubernetes.io/docs/concepts/architecture/cgroups/#check-cgroup-version
-
name
:
Stop if cgroups are not enabled on nodes
command
:
stat -fc %T /sys/fs/cgroup/
changed_when
:
false
when
:
not ignore_assert_errors
# This assertion will fail on the safe side: One can indeed schedule more pods
# on a node than the CIDR-range has space for when additional pods use the host
# network namespace. It is impossible to ascertain the number of such pods at
...
...
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