mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Add all supported analyzers to host preflight sample. Don't log transient errors waiting for TCP connection. Begin human stdout results on new line after spinner.
23 lines
567 B
YAML
23 lines
567 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: HostPreflight
|
|
metadata:
|
|
name: cpu
|
|
spec:
|
|
collectors:
|
|
- cpu: {}
|
|
analyzers:
|
|
- cpu:
|
|
outcomes:
|
|
- fail:
|
|
when: "physical < 4"
|
|
message: At least 4 physical CPU cores are required
|
|
- fail:
|
|
when: "logical < 8"
|
|
message: At least 8 CPU cores are required
|
|
- warn:
|
|
when: "count < 16"
|
|
message: At least 16 CPU cores preferred
|
|
- pass:
|
|
message: This server has sufficient CPU cores
|
|
|