Last active
July 26, 2021 11:15
-
-
Save murphybytes/5b3293cb13ef016c0c645585e4d5d7c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: troubleshoot.sh/v1beta3 | |
kind: HostPreflight | |
metadata: | |
name: kurl-builtin | |
spec: | |
collectors: | |
- cpu: {} | |
- memory: {} | |
- tcpPortStatus: | |
collectorName: "Kubernetes API TCP Port Status" | |
port: 6443 | |
exclude: '{{kurl and .IsPrimary (not .IsUpgrade) | not }}' | |
analyzers: | |
- tcpPortStatus: | |
checkName: "Kubelet API TCP Port Status" | |
collectorName: "Kubelet API TCP Port Status" | |
default: | |
outcome: warn | |
message: unexpected port status | |
- cpu: | |
checkName: "Number of CPUs" | |
outcomes: | |
- warn: | |
when: '$count >= 2 AND $count < 4' | |
message: At least 4 CPU cores are recommended | |
- fail: | |
when: '$count < 2' | |
message: At least 2 CPU cores are required, and 4 CPU cores are recommended | |
- pass: '$count >= 4' | |
message: This server has at least 4 CPU cores | |
- memory: | |
checkName: "Amount of Memory" | |
outcomes: | |
- warn: | |
when: '$memory >= 4G AND $memory < 8G" | |
message: At least 8G of memory is recommended | |
- fail: | |
when: '$memory < 4G' | |
message: At least 4G of memory is required, and 8G of memory is recommended | |
- pass: | |
when: '$memory >= 8G' | |
message: The system has at least 8G of memory | |
outcomes: | |
- fail: | |
when: '$status == "connection-refused"' | |
message: Connection to port 10250 was refused. This is likely to be a routing problem since this preflight configures a test server to listen on this port. | |
- warn: | |
when: '$status == "address-in-use"' | |
message: Another process was already listening on port 10250. | |
- fail: | |
when: '$status == "connection-timeout"' | |
message: Timed out connecting to port 10250. Check your firewall. | |
- fail: | |
when: '$status == "error"' | |
message: Unexpected port status | |
- pass: | |
when: '$status == connected' | |
message: Port 10250 is open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment