Skip to content
Snippets Groups Projects
Unverified Commit ce2642f2 authored by Franz Nemeth's avatar Franz Nemeth Committed by GitHub
Browse files

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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment