-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2551 from replicatedhq/110162
Add Embedded Cluster support bundle to support bundle docs
- Loading branch information
Showing
17 changed files
with
175 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,30 @@ | ||
import InstallPlugin from "../partials/support-bundles/_install-plugin.mdx" | ||
import GenerateBundle from "../partials/support-bundles/_generate-bundle.mdx" | ||
import GenerateBundleAdminConsole from "../partials/support-bundles/_generate-bundle-admin-console.mdx" | ||
import GenerateBundleCliAdminConsole from "../partials/support-bundles/_generate-bundle-cli-admin-console.mdx" | ||
import GenerateBundleHost from "../partials/support-bundles/_generate-bundle-host.mdx" | ||
import GenerateBundleDefaultKots from "../partials/support-bundles/_generate-bundle-default-kots.mdx" | ||
|
||
|
||
# Generating Support Bundles | ||
# Generating Support Bundles for KOTS Installations | ||
|
||
The Replicated KOTS Admin Console includes a Troubleshoot page where you can generate an analysis and review remediation suggestions for troubleshooting an application. You can download a support bundle to share with your vendor. | ||
This topic describes how to generate support bundles for applications installed with Replicated KOTS. | ||
|
||
Alternatively, you can generate a support bundle using the support-bundle CLI. For embedded clusters created with Replicated kURL, you can also generate a host support bundle. | ||
|
||
## Generate a Support Bundle using the Admin Console | ||
## Generate a Bundle from the Admin Console | ||
|
||
<GenerateBundleAdminConsole/> | ||
|
||
## Generating a Support Bundle using the CLI | ||
## Generate a Bundle Using the CLI | ||
|
||
You can generate a support bundle using the support-bundle CLI instead of the Admin Console. For example, the Admin Console might not be available if you are using a Replicated kURL installer and the installation fails. Or perhaps you need to use a more recent version of the support-bundle plugin than what is embedded in the Admin Console. | ||
You can generate a support bundle using the support-bundle CLI instead of the Admin Console. For example, you might need to generate a bundle from the CLI if the Admin Console is not available. Or perhaps you need to use a more recent version of the support-bundle plugin than what is embedded in the Admin Console. | ||
|
||
### Prerequisite: Install the Plugin {#plugin} | ||
|
||
<InstallPlugin/> | ||
|
||
### Generate a Bundle (KOTS v1.94.2 and Later) | ||
|
||
:::note | ||
To generate support bundles on earlier versions of Replicated KOTS, see [Generate a Bundle (KOTS v1.94.1 and Earlier)](#earlier-versions). | ||
::: | ||
### Generate a Bundle | ||
|
||
<GenerateBundle/> | ||
|
||
### Generate a Bundle (KOTS v1.94.1 and Earlier){#earlier-versions} | ||
|
||
<GenerateBundleCliAdminConsole/> | ||
|
||
### Generate a Host Support Bundle | ||
|
||
<GenerateBundleHost/> | ||
|
||
### Generate a Bundle with a Default kots.io File | ||
## Related Topics | ||
|
||
<GenerateBundleDefaultKots/> | ||
* [Generating Host Bundles for Embedded Cluster](/vendor/support-bundle-embedded) | ||
* [Generating Host Bundles for kURL](/vendor/support-host-support-bundles) | ||
* [Generating Support Bundles](/vendor/support-bundle-generating) |
14 changes: 6 additions & 8 deletions
14
docs/partials/support-bundles/_generate-bundle-admin-console.mdx
This file contains 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
19 changes: 0 additions & 19 deletions
19
docs/partials/support-bundles/_generate-bundle-cli-admin-console.mdx
This file was deleted.
Oops, something went wrong.
28 changes: 14 additions & 14 deletions
28
docs/partials/support-bundles/_generate-bundle-default-kots.mdx
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
To generate a support bundle: | ||
|
||
1. SSH onto a controller node. | ||
|
||
1. Use the Embedded Cluster shell command to start a shell with access to the cluster: | ||
|
||
```bash | ||
sudo ./APP_SLUG shell | ||
``` | ||
Where `APP_SLUG` is the unique slug for the application. | ||
|
||
The output looks similar to the following: | ||
|
||
```bash | ||
__4___ | ||
_ \ \ \ \ Welcome to APP_SLUG debug shell. | ||
<'\ /_/_/_/ This terminal is now configured to access your cluster. | ||
((____!___/) Type 'exit' (or CTRL+d) to exit. | ||
\0\0\0\0\/ Happy hacking. | ||
~~~~~~~~~~~ | ||
root@alex-ec-2:/home/alex# export KUBECONFIG="/var/lib/k0s/pki/admin.conf" | ||
root@alex-ec-2:/home/alex# export PATH="$PATH:/var/lib/embedded-cluster/bin" | ||
root@alex-ec-2:/home/alex# source <(kubectl completion bash) | ||
root@alex-ec-2:/home/alex# source /etc/bash_completion | ||
``` | ||
The appropriate kubeconfig is exported, and the location of useful binaries like kubectl and the preflight and support-bundle plugins is added to PATH. | ||
:::note | ||
The shell command cannot be run on non-controller nodes. | ||
::: | ||
2. Generate the support bundle using the default Embedded Cluster spec and the `--load-cluster-specs` flag: | ||
```bash | ||
kubectl support-bundle --load-cluster-specs /var/lib/embedded-cluster/support/host-support-bundle.yaml | ||
``` | ||
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,9 @@ | ||
Support bundles are generated by providing one or more support bundle specifications with the `kubectl support-bundle` command. | ||
Run the following command to generate a bundle: | ||
|
||
For installations with the Helm CLI or with KOTS, specifications can be provided from YAML files in the local directory or from a URL. Additionally, for installations with the Helm CLI or with KOTS v1.104.0 and later, specifications can be automatically discovered in Secret or ConfigMap objects in the cluster using the `--load-cluster-specs` flag with the `kubectl support-bundle`. | ||
```bash | ||
kubectl support-bundle --load-cluster-specs | ||
``` | ||
|
||
For a complete list of options with the `kubectl support-bundle` command, run `kubectl support-bundle --help`. For more information, see [Collecting a Support Bundle](https://troubleshoot.sh/docs/support-bundle/collecting/) and [Discover Cluster Specs](https://troubleshoot.sh/docs/support-bundle/discover-cluster-specs/) in the Troubleshoot documentation. | ||
The `--load-cluster-specs` flag automatically discovers all support bundle specs that are defined in Secrets or ConfigMaps in the cluster. For more information, see [Discover Cluster Specs](https://troubleshoot.sh/docs/support-bundle/discover-cluster-specs/) in the Troubleshoot documentation. | ||
|
||
The following lists some possible uses of the `kubectl support-bundle` CLI command to generate a support bundle from one or more specifications: | ||
|
||
- Discover all specifications defined in Secrets or ConfigMaps in the cluster: | ||
|
||
```bash | ||
kubectl support-bundle --load-cluster-specs | ||
``` | ||
|
||
- Discover all specifications defined in Secrets or ConfigMaps in the cluster that match a custom label: | ||
|
||
```bash | ||
kubectl support-bundle --load-cluster-specs -l LABEL | ||
``` | ||
|
||
Where `LABEL` is the name of the custom label. | ||
|
||
- Provide one or more files that contain support bundle specifications: | ||
|
||
```bash | ||
kubectl support-bundle ./PATH_TO_FILE1 ./PATH_TO_FILE2 ./PATH_TO_FILE3 | ||
``` | ||
|
||
Where `PATH_TO_FILE` is the path and YAML file name for each file. | ||
|
||
- Provide one specification that is located at a URL and another specification located in the local directory: | ||
|
||
```bash | ||
kubectl support-bundle URL \ | ||
./PATH_TO_FILE | ||
``` | ||
|
||
Where: | ||
|
||
- `URL` is the URL where the specification is located | ||
- `PATH_TO_FILE` is the path and YAML file name | ||
For a complete list of options with the `kubectl support-bundle` command, run `kubectl support-bundle --help`. For more information, see [Collecting a Support Bundle](https://troubleshoot.sh/docs/support-bundle/collecting/) in the Troubleshoot documentation. |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.