Files
troubleshoot/examples/preflight/host/cpu.yaml
Andrew Reed fe4db40b43 Move host preflights examples into separate directory
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.
2021-02-15 22:46:12 +00:00

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