Franz Nemeth
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
0 deletions
-
roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
|
@ -77,6 +77,13 @@ |
|
|
- not ignore_assert_errors |
|
|
- not ignore_assert_errors |
|
|
- inventory_hostname in groups['kube_node'] |
|
|
- 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 |
|
|
# 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 |
|
|
# 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 |
|
|
# network namespace. It is impossible to ascertain the number of such pods at |
|
|