forked from replicatedhq/troubleshoot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
preflight_remote.yaml
50 lines (50 loc) · 1.79 KB
/
preflight_remote.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: modules
spec:
remoteCollectors:
- cpu: {}
- memory: {}
- kernelModules: {}
analyzers:
- cpu:
outcomes:
- fail:
when: "physical < 1"
message: At least 1 physical CPU cores are required
- fail:
when: "logical < 1"
message: At least 1 CPU cores are required
- warn:
when: "count < 2"
message: At least 2 CPU cores preferred
- pass:
message: This server has sufficient CPU cores
- memory:
outcomes:
- fail:
when: "< 2Gi"
message: At least 2Gi of memory is required
- warn:
when: "< 8Gi"
message: At least 8Gi of memory is recommended
- pass:
message: The system has as sufficient memory
- kernelModules:
outcomes:
- fail:
when: "target_core_mod != loaded,loadable"
message: The 'target_core_mod' kernel module is not loaded or loadable
- fail:
when: "target_core_file != loaded,loadable"
message: The 'target_core_file' kernel module is not loaded or loadable
- fail:
when: "tcm_loop != loaded,loadable"
message: The 'tcm_loop' kernel module is not loaded or loadable
- warn:
when: "nvme != loaded"
message: The system is not using NVME storage, which will provide better performance
- pass:
when: "target_core_mod,target_core_file,tcm_loop == loaded,loadable"
message: The 'target_core_mod', target_core_file', and 'tcm_loop' kernel modules are loaded or loadable