|
1 | 1 | # Replicated Troubleshoot |
2 | 2 |
|
3 | | -Replicated Troubleshoot is a CLI tool that provides pre-installation cluster conformance testing and validation (preflight checks) and post-installation troubleshooting and diagnostics (support bundles). |
| 3 | +Replicated Troubleshoot is a framework for collecting, redacting and analyzing highly customizable diagnostic information about a Kubernetes cluster. Troubleshoot specs are created by 3rd-party application developers/maintainers and run by cluster operators in the initial and ongoing operation of those applications. |
| 4 | + |
| 5 | +Troubleshoot provides two CLI tools as kubectl plugins (using [Krew](https://krew.dev)) `kubectl preflight` and `kubectl support-bundle`. Preflight provides pre-installation cluster conformance testing and validation (preflight checks) and support-bundle provides post-installation troubleshooting and diagnostics (support bundles). |
4 | 6 |
|
5 | 7 | ## Preflight Checks |
6 | 8 | Preflight checks are an easy-to-run set of conformance tests that can be written to verify that specific requirements in a cluster are met. |
7 | 9 |
|
8 | | -To run a sample preflight check from a sample application, [install the preflight kubectl plugin](https://help.replicated.com/docs/troubleshoot/kubernetes/preflight/executing/) and run: |
| 10 | +To run a sample preflight check from a sample application, install the preflight kubectl plugin: |
9 | 11 |
|
| 12 | +```shell |
| 13 | +curl https://krew.sh/preflight | bash |
| 14 | +``` |
| 15 | + and run: |
| 16 | + |
10 | 17 | ```shell |
11 | 18 | kubectl preflight https://preflight.replicated.com |
12 | 19 | ``` |
13 | 20 |
|
14 | | -For a full description of the supported preflight checks, visit the [docs](https://help.replicated.com/docs/troubleshoot/kubernetes/analysis/). |
| 21 | +For a details on creating the custom resource files that drive preflight checks, visit [creating preflight checks](https://troubleshoot.sh/docs/preflight/creating/). |
| 22 | + |
15 | 23 |
|
16 | 24 | ## Support Bundle |
17 | | -A support bundle is an archive that's created in-cluster, by collecting logs, cluster information and executing various commands. After creating a support bundle, the cluster operator will normally deliver it to the application vendor for analysis and remote debugging. |
| 25 | +A support bundle is an archive that's created in-cluster, by collecting logs, cluster information and executing specified commands (including redaction of sensitive information). After creating a support bundle, the cluster operator will normally deliver it to the 3rd-party application vendor for analysis and disconnected debugging. Another Replicated project, [Kotsadm](https://github.com/replicatedhq/kotsadm), provides cluster operators with in-cluster UI for processing support bundles and viewing analyzers (as well as support bundle collection). |
18 | 26 |
|
19 | | -To collect a sample support bundle, [install the troubleshoot kubectl plugin](https://help.replicated.com/docs/troubleshoot/kubernetes/support-bundle/collecting/) and run: |
| 27 | +To collect a sample support bundle, install the troubleshoot kubectl plugin: |
20 | 28 |
|
| 29 | +```shell |
| 30 | +curl https://krew.sh/support-bundle | bash |
| 31 | +``` |
| 32 | + and run: |
| 33 | + |
21 | 34 | ```shell |
22 | 35 | kubectl support-bundle https://troubleshoot.replicated.com |
23 | 36 | ``` |
| 37 | +For details on creating the custom resource files that drive support-bundle collection [creating collectors](https://troubleshoot.sh/reference/collectors/overview/) and for analyzers [creating analyzers](https://troubleshoot.sh/reference/analyzers/overview/). |
0 commit comments