Skip to content

Commit

Permalink
Update host preflight wording (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajp-io authored Aug 1, 2024
1 parent 7748286 commit ce25152
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions pkg/preflights/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ spec:
- hostOS: {}
analyzers:
- cpu:
checkName: 'Number of CPU cores'
checkName: CPU
outcomes:
- fail:
when: 'count < 2'
message: At least 2 CPU cores are required
- pass:
message: At least 2 CPU cores are present
- memory:
checkName: Amount of Memory
checkName: Memory
outcomes:
- fail:
when: '< 2G'
Expand Down Expand Up @@ -110,11 +110,12 @@ spec:
outcomes:
- fail:
when: 'false'
message: 'No default route found. A default route is required.'
message: No default route found. A default route is required.
- pass:
when: 'true'
message: 'Host has a default route'
message: Host has a default route
- ipv4Interfaces:
checkName: IPv4 Interface
outcomes:
- fail:
when: 'count == 0'
Expand All @@ -127,28 +128,28 @@ spec:
outcomes:
- fail:
when: 'ntp == unsynchronized+inactive'
message: 'System clock is not synchronized'
message: System clock is not synchronized
- fail:
when: 'ntp == unsynchronized+active'
message: System clock is not yet synchronized
- pass:
when: 'ntp == synchronized+active'
message: 'System clock is synchronized'
message: System clock is synchronized
- jsonCompare:
checkName: Check if either cgroup v1 or v2 is enabled
checkName: Cgroups
fileName: host-collectors/system/cgroups.json
path: 'cgroup-enabled'
value: |
true
outcomes:
- fail:
when: 'false'
message: 'Neither cgroup v1 nor v2 is enabled'
message: Neither cgroup v1 nor v2 is enabled
- pass:
when: 'true'
message: 'One of cgroup v1 or v2 is enabled'
message: One of cgroup v1 or v2 is enabled
- jsonCompare:
checkName: Check if cpu cgroup controller is enabled
checkName: "'cpu' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'cpu')]}"
value: |
Expand All @@ -161,7 +162,7 @@ spec:
when: 'true'
message: "'cpu' cgroup controller is enabled"
- jsonCompare:
checkName: Check if cpuacct cgroup controller is enabled
checkName: "'cpuacct' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'cpuacct')]}"
value: |
Expand All @@ -174,7 +175,7 @@ spec:
when: 'true'
message: "'cpuacct' cgroup controller is enabled"
- jsonCompare:
checkName: Check if cpuset cgroup controller is enabled
checkName: "'cpuset' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'cpuset')]}"
value: |
Expand All @@ -187,7 +188,7 @@ spec:
when: 'true'
message: "'cpuset' cgroup controller is enabled"
- jsonCompare:
checkName: Check if memory cgroup controller is enabled
checkName: "'memory' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'memory')]}"
value: |
Expand All @@ -200,7 +201,7 @@ spec:
when: 'true'
message: "'memory' cgroup controller is enabled"
- jsonCompare:
checkName: Check if devices cgroup controller is enabled
checkName: "'devices' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'devices')]}"
value: |
Expand All @@ -213,7 +214,7 @@ spec:
when: 'true'
message: "'devices' cgroup controller is enabled"
- jsonCompare:
checkName: Check if freezer cgroup controller is enabled
checkName: "'freezer' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'freezer')]}"
value: |
Expand All @@ -226,7 +227,7 @@ spec:
when: 'true'
message: "'freezer' cgroup controller is enabled"
- jsonCompare:
checkName: Check if pids cgroup controller is enabled
checkName: "'pids' Cgroup Controller"
fileName: host-collectors/system/cgroups.json
jsonPath: "{$.allControllers[?(@ == 'pids')]}"
value: |
Expand All @@ -239,18 +240,18 @@ spec:
when: 'true'
message: "'pids' cgroup controller is enabled"
- textAnalyze:
checkName: Check if /proc filesystem is mounted
checkName: /proc Filesystem
fileName: host-collectors/run-host/check-proc-filesystem.txt
regex: 'proc'
outcomes:
- pass:
when: "true"
message: "/proc filesystem is mounted"
message: /proc filesystem is mounted
- fail:
when: "false"
message: "/proc filesystem is not mounted"
message: /proc filesystem is not mounted
- textAnalyze:
checkName: Check if 'modprobe' command exists in PATH
checkName: "'modprobe' Command"
fileName: host-collectors/run-host/check-modprobe.txt
regex: '/usr/sbin/modprobe'
outcomes:
Expand All @@ -261,7 +262,7 @@ spec:
when: "false"
message: "'modprobe' command does not exist in PATH"
- textAnalyze:
checkName: Check if 'mount' command exists in PATH
checkName: "'mount' Command"
fileName: host-collectors/run-host/check-mount.txt
regex: '/usr/bin/mount'
outcomes:
Expand All @@ -272,7 +273,7 @@ spec:
when: "false"
message: "'mount' command does not exist in PATH"
- textAnalyze:
checkName: Check if 'umount' command exists in PATH
checkName: "'umount' Command"
fileName: host-collectors/run-host/check-umount.txt
regex: '/usr/bin/umount'
outcomes:
Expand All @@ -283,10 +284,10 @@ spec:
when: "false"
message: "'umount' command does not exist in PATH"
- hostOS:
checkName: Check minimum kernel version
checkName: Kernel Version
outcomes:
- pass:
when: "kernelVersion >= 3.10"
message: "Minimum kernel version of 3.10 has been met"
message: Kernel meets minimum version version of 3.10
- fail:
message: "Minimum kernel version of 3.10 has not been met"
message: Kernel doesn't meet minimum version of 3.10

0 comments on commit ce25152

Please sign in to comment.