mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +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.
26 lines
751 B
YAML
26 lines
751 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: HostPreflight
|
|
metadata:
|
|
name: connect
|
|
spec:
|
|
collectors:
|
|
- tcpConnect:
|
|
collectorName: weave host 1
|
|
address: 10.128.0.2:6783
|
|
analyzers:
|
|
- tcpConnect:
|
|
collectorName: weave host 1
|
|
outcomes:
|
|
- fail:
|
|
when: "connection-refused"
|
|
message: Connection to weave on host 1 was refused
|
|
- fail:
|
|
when: "connection-timeout"
|
|
message: Timed out connecting to weave on host 1
|
|
- fail:
|
|
when: "error"
|
|
message: Unexpected error connecting to weave on host 1
|
|
- pass:
|
|
when: "connected"
|
|
message: Successfully connected to weave on host 1
|