Skip to content

Commit ae09ed9

Browse files
ricardomaraschinipaigecalvertajp-io
authored
doc: document embedded-cluster support-bundle command (#2771)
* doc: document embedded-cluster support-bundle command this is a temporary PR as XXX needs to be replaced with the actual embedded-cluster version yet to be released. * chore: improve wording * chore: improve wording * docs edits * edits * add version and clarify app-level info * edit * Update _ec-support-bundle-intro.mdx --------- Co-authored-by: Paige Calvert <[email protected]> Co-authored-by: Alex Parker <[email protected]>
1 parent ffde934 commit ae09ed9

File tree

5 files changed

+52
-26
lines changed

5 files changed

+52
-26
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Embedded Cluster includes a default support bundle spec that collects both host- and cluster-level information.
2+
3+
The host-level information is useful for troubleshooting failures related to host configuration like DNS, networking, or storage problems. Cluster-level information includes details about the components provided by Replicated, such as the Admin Console and Embedded Cluster operator that manage install and upgrade operations. If the cluster has not installed successfully and cluster-level information is not available, then it is excluded from the bundle.
4+
5+
In addition to the host- and cluster-level details provided by the default Embedded Cluster spec, support bundles generated for Embedded Cluster installations also include app-level details provided by any custom support bundle specs that you included in the application release.

docs/partials/support-bundles/_generate-bundle-ec.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
1+
There are different steps to generate a support bundle depending on the version of Embedded Cluster installed.
2+
3+
### For Versions 1.17.0 and Later
4+
5+
For Embedded Cluster 1.17.0 and later, you can run the Embedded Cluster `support-bundle` command to generate a support bundle.
6+
7+
The `support-bundle` command uses the default Embedded Cluster support bundle spec to collect both cluster- and host-level information. It also automatically includes any application-specific support bundle specs in the generated bundle.
8+
19
To generate a support bundle:
210

11+
1. SSH onto a controller node.
12+
13+
:::note
14+
You can SSH onto a worker node to generate a support bundle that contains information specific to that node. However, when run on a worker node, the `support-bundle` command does not capture cluster-wide information.
15+
:::
16+
17+
1. Run the following command:
18+
19+
```bash
20+
sudo ./APP_SLUG support-bundle
21+
```
22+
23+
Where `APP_SLUG` is the unique slug for the application.
24+
25+
### For Versions Earlier Than 1.17.0
26+
27+
For Embedded Cluster versions earlier than 1.17.0, you can generate a support bundle from the shell using the kubectl support-bundle plugin.
28+
29+
To generate a bundle with the support-bundle plugin, you pass the default Embedded Cluster spec to collect both cluster- and host-level information. You also pass the `--load-cluster-specs` flag, which discovers all support bundle specs that are defined in Secrets or ConfigMaps in the cluster. This ensures that any application-specific specs are also included in the bundle. For more information, see [Discover Cluster Specs](https://troubleshoot.sh/docs/support-bundle/discover-cluster-specs/) in the Troubleshoot documentation.
30+
31+
To generate a bundle:
32+
333
1. SSH onto a controller node.
434

535
1. Use the Embedded Cluster shell command to start a shell with access to the cluster:
@@ -35,4 +65,3 @@ To generate a support bundle:
3565
```bash
3666
kubectl support-bundle --load-cluster-specs /var/lib/embedded-cluster/support/host-support-bundle.yaml
3767
```
38-

docs/vendor/embedded-overview.mdx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import EmbeddedCluster from "../partials/embedded-cluster/_definition.mdx"
22
import KurlComparison from "../partials/embedded-cluster/_kurl-comparison.mdx"
33
import Requirements from "../partials/embedded-cluster/_requirements.mdx"
44
import UpdateOverview from "../partials/embedded-cluster/_update-overview.mdx"
5+
import SupportBundleIntro from "../partials/support-bundles/_ec-support-bundle-intro.mdx"
56
import EmbeddedClusterSupportBundle from "../partials/support-bundles/_generate-bundle-ec.mdx"
67
import EcConfig from "../partials/embedded-cluster/_ec-config.mdx"
78
import EmbeddedClusterPortRequirements from "../partials/embedded-cluster/_port-reqs.mdx"
@@ -241,20 +242,6 @@ To access the cluster and use other included binaries:
241242
If you encounter a typical workflow where your customers have to use the Embedded Cluster shell, reach out to Alex Parker at [email protected]. These workflows might be candidates for additional Admin Console functionality.
242243
:::
243244

244-
### Troubleshoot
245-
246-
From the shell, you can generate a support bundle for Replicated Embedded Cluster installations to help with troubleshooting.
247-
248-
The default support bundle spec for Embedded Cluster collects host-level information to troubleshoot failures related to host configuration like DNS, networking, or storage problems.
249-
250-
It also collects cluster-level information about the components provided by Replicated, such as the Admin Console and Embedded Cluster operator that manage install and upgrade operations. If the cluster has not installed successfully and cluster-level information is not available, it will be excluded from the bundle.
251-
252-
When generating the default host bundle for Embedded Cluster installations, you can also use the `--load-cluster-specs` flag to automatically discover all support bundle specs that are defined in Secrets or ConfigMaps in the cluster. This ensures that any application-specific specs are included in the bundle. For more information, see [Discover Cluster Specs](https://troubleshoot.sh/docs/support-bundle/discover-cluster-specs/) in the Troubleshoot documentation.
253-
254-
<EmbeddedClusterSupportBundle/>
255-
256-
You can then use the support bundle for troubleshooting or provide it to Replicated for assistance.
257-
258245
## Manage Nodes
259246

260247
The section describes managing nodes in clusters created with Embedded Cluster, including how to add or reset nodes.
@@ -380,3 +367,9 @@ toolkit:
380367
- name: CONTAINERD_SOCKET
381368
value: /run/k0s/containerd.sock
382369
```
370+
371+
## Troubleshoot with Support Bundles
372+
373+
<SupportBundleIntro/>
374+
375+
<EmbeddedClusterSupportBundle/>
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import EmbeddedClusterSupportBundle from "../partials/support-bundles/_generate-bundle-ec.mdx"
2+
import SupportBundleIntro from "../partials/support-bundles/_ec-support-bundle-intro.mdx"
23

3-
# Generating Host Bundles for Embedded Cluster
4+
# Generating Support Bundles for Embedded Cluster
45

5-
This topic describes how to generate a support bundle that includes host-level information for [Replicated Embedded Cluster](/vendor/embedded-overview) installations. For information about generating host support bundles for Replicated kURL installations, see [Generating Host Bundles for kURL](/vendor/support-host-support-bundles).
6+
This topic describes how to generate a support bundle that includes cluster- and host-level information for [Replicated Embedded Cluster](/vendor/embedded-overview) installations.
67

7-
## Overview
8-
9-
From the shell, you can generate a support bundle for Replicated Embedded Cluster installations to help with troubleshooting.
8+
For information about generating host support bundles for Replicated kURL installations, see [Generating Host Bundles for kURL](/vendor/support-host-support-bundles).
109

11-
The default support bundle spec for Embedded Cluster collects host-level information to troubleshoot failures related to host configuration like DNS, networking, or storage problems.
12-
13-
It also collects cluster-level information about the components provided by Replicated, such as the Admin Console and Embedded Cluster operator that manage install and upgrade operations. If the cluster has not installed successfully and cluster-level information is not available, it will be excluded from the bundle.
10+
## Overview
1411

15-
When generating the default host bundle for Embedded Cluster installations, you can also use the `--load-cluster-specs` flag to automatically discover all support bundle specs that are defined in Secrets or ConfigMaps in the cluster. This ensures that any application-specific specs are included in the bundle. For more information, see [Discover Cluster Specs](https://troubleshoot.sh/docs/support-bundle/discover-cluster-specs/) in the Troubleshoot documentation.
12+
<SupportBundleIntro/>
1613

17-
## Generate a Support Bundle for Embedded Cluster
14+
## Generate a Support Bundle
1815

1916
<EmbeddedClusterSupportBundle/>

docs/vendor/support-bundle-generating.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import GenerateBundle from "../partials/support-bundles/_generate-bundle.mdx"
55

66
This topic describes how to generate support bundles from the command line using the kubectl support-bundle plugin. For more information about support bundles, see [About Preflights and Support Bundles](/vendor/preflight-support-bundle-about).
77

8+
The information in this topic applies to generating support bundles in clusters where you have kubectl access. For information about generating support bundles that include cluster- and host-level information for Replicated Embedded Cluster installations, see [Generating Support Bundles for Embedded Cluster](support-bundle-embedded).
9+
810
## Prerequisite: Install the support-bundle Plugin
911

1012
<InstallPlugin/>
@@ -25,6 +27,6 @@ kubectl support-bundle https://raw.githubusercontent.com/replicatedhq/troublesho
2527

2628
## Related Topics
2729

28-
* [Generating Host Bundles for Embedded Cluster](/vendor/support-bundle-embedded)
30+
* [Generating Support Bundles for Embedded Cluster](/vendor/support-bundle-embedded)
2931
* [Generating Host Bundles for kURL](/vendor/support-host-support-bundles)
3032
* [Generating Support Bundles for KOTS Installations](/enterprise/troubleshooting-an-app)

0 commit comments

Comments
 (0)