|
| 1 | +--- |
| 2 | +docs: DOCS-1123 |
| 3 | +doctypes: |
| 4 | +- reference |
| 5 | +- task |
| 6 | +tags: |
| 7 | +- docs |
| 8 | +title: Create a support package from a Helm installation |
| 9 | +toc: true |
| 10 | +weight: 200 |
| 11 | +--- |
| 12 | + |
| 13 | +{{< include "/nim/decoupling/note-legacy-nms-references.md" >}} |
| 14 | + |
| 15 | +## Overview |
| 16 | + |
| 17 | +Use the Kubernetes support package script to collect system and service information for troubleshooting and debugging. The script packages the data into a tar archive that you can share with [NGINX Customer Support]({{< relref "nim/support/contact-support.md" >}}). |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Before you begin |
| 22 | + |
| 23 | +To follow this guide, ensure you have: |
| 24 | + |
| 25 | +- `bash` 4.0 or higher. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## Usage |
| 30 | + |
| 31 | +The F5 NGINX Instance Manager Helm chart includes the `k8s-support-package.sh` script located at: |
| 32 | + |
| 33 | +- `/support-package/k8s-support-package.sh`. |
| 34 | + |
| 35 | +### Steps to create a support package |
| 36 | + |
| 37 | +1. Download the latest NGINX Instance Manager Helm chart: |
| 38 | + |
| 39 | + ```bash |
| 40 | + helm repo add nginx-stable https://helm.nginx.com/stable |
| 41 | + helm repo update |
| 42 | + helm pull nginx-stable/nms |
| 43 | + tar zxvf nms-<version>.tgz |
| 44 | + ``` |
| 45 | + |
| 46 | +2. Run the Kubernetes support package script. For available options, refer to the [arguments](#arguments) section: |
| 47 | + |
| 48 | + ```bash |
| 49 | + bash ./nms/charts/nms-hybrid/support-package/k8s-support-package.sh |
| 50 | + ``` |
| 51 | + |
| 52 | + The support package is saved in the directory where the script is run. |
| 53 | + |
| 54 | +3. Extract the package using the `tar` command: |
| 55 | + |
| 56 | + ```bash |
| 57 | + tar -xvf k8s-support-pkg-<timestamp>.tar.gz |
| 58 | + ``` |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +## Arguments |
| 63 | + |
| 64 | +The table below lists arguments available for the Kubernetes support package script. |
| 65 | + |
| 66 | +| Short | Long | Description | Example | Default | |
| 67 | +|-------|------------------------|------------------------------------------------------------|---------------|----------| |
| 68 | +| `-h` | `--help` | Prints information about the script arguments to `stdout`. | `--help` | N/A | |
| 69 | +| `-o` | `--output_dir` | Specifies the output directory for the tar archive. | `-o ~/output` | `$(pwd)` | |
| 70 | +| `-n` | `--namespace` | Specifies the namespace of the Helm installation. | `-n nms` | `<none>` | |
| 71 | +| `-xd` | `--exclude_databases` | Excludes Dqlite database backup data. | `-xd` | `False` | |
| 72 | +| `-xt` | `--exclude_timeseries` | Excludes ClickHouse time series data. | `-xt` | `False` | |
| 73 | +| `-m` | `--modules` | Includes specific modules in Dqlite database backup data. | `-m acm` | `False` | |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +## Package contents |
| 78 | + |
| 79 | +The Kubernetes support package includes directories with detailed information about your cluster, namespace, application, and database state. |
| 80 | + |
| 81 | +### k8s-support-package.log |
| 82 | + |
| 83 | +A log of all output generated by the `k8s-support-package.sh` script. |
| 84 | + |
| 85 | +### chart-files |
| 86 | + |
| 87 | +A snapshot of the Helm chart files in the parent directory, excluding the directory where the script runs. |
| 88 | + |
| 89 | +### version-info |
| 90 | + |
| 91 | +Versions of: |
| 92 | + |
| 93 | +- Helm chart |
| 94 | +- `kubectl` tool |
| 95 | +- `helm` tool |
| 96 | +- NGINX gateway |
| 97 | +- ClickHouse |
| 98 | + |
| 99 | +### cluster-info |
| 100 | + |
| 101 | +Cluster-related data, including: |
| 102 | + |
| 103 | +- Cluster details |
| 104 | +- Node information |
| 105 | +- Storage class configurations |
| 106 | + |
| 107 | +### namespace-info |
| 108 | + |
| 109 | +Namespace-specific details, including: |
| 110 | + |
| 111 | +- General namespace data |
| 112 | +- Events |
| 113 | +- API version |
| 114 | +- API services and resources |
| 115 | + |
| 116 | +### app-info |
| 117 | + |
| 118 | +Application-related information for NGINX Instance Manager: |
| 119 | + |
| 120 | +- Deployments |
| 121 | +- Services |
| 122 | +- Persistent Volumes and Claims |
| 123 | +- Secrets and Configmaps |
| 124 | +- Pods |
| 125 | + |
| 126 | +### pod-logs |
| 127 | + |
| 128 | +Logs of processes for NGINX Instance Manager, NGINX gateway, and ClickHouse. Files in this directory follow the naming convention: `pod_name-<timestamp>.logs`. |
| 129 | + |
| 130 | +### pod-system-info |
| 131 | + |
| 132 | +Status and state details for each pod, including: |
| 133 | + |
| 134 | +- Operating system version |
| 135 | +- Environment variables |
| 136 | +- Running processes |
| 137 | + |
| 138 | +### dqlite |
| 139 | + |
| 140 | +The script uses the `dqlite-backup` executable (located in `/etc/nms/scripts/` within relevant containers) to collect database dumps. Data is saved in: |
| 141 | + |
| 142 | +- `dqlite/core` |
| 143 | +- `dqlite/dpm` |
| 144 | +- `dqlite/integrations` |
| 145 | + |
| 146 | +If the `--modules` flag is specified, data is saved to `dqlite/<moduleName>`. |
| 147 | + |
| 148 | +### timeseries |
| 149 | + |
| 150 | +Contains metrics, events, and statistics from the `nms` ClickHouse database. |
0 commit comments