|
1 |
| -# kubectl-kic-supportpkg |
| 1 | +# kubectl-kic-supportpkg |
| 2 | + |
| 3 | +A kubectl plugin designed to collect diagnostics information on the designated namespaces. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +The plugin collects the following global and namespace-specific information: |
| 8 | + |
| 9 | +- k8s version, nodes information and CRDs |
| 10 | +- pods logs |
| 11 | +- list of pods, events, configmaps, services, deployments, statefulsets, replicasets and leases |
| 12 | +- k8s metrics |
| 13 | +- helm deployments |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +Clone the repo and run `make install`. This will build the binary and copy it on `/usr/local/bin/`. |
| 18 | + |
| 19 | +Verify that the plugin is properly found by `kubectl`: |
| 20 | + |
| 21 | +``` |
| 22 | +$ kubectl plugin list |
| 23 | +The following compatible plugins are available: |
| 24 | +
|
| 25 | +/usr/local/bin/kubectl-kic-supportpkg |
| 26 | +``` |
| 27 | + |
| 28 | +## Usage |
| 29 | + |
| 30 | +The plugin is invoked via `kubectl kic supportpkg` and has only one required flag, `-n` or `--namespace`: |
| 31 | + |
| 32 | +``` |
| 33 | +$ kubectl kic supportpkg -n default -n nginx-ingress-0 |
| 34 | +Running job pod-list... OK |
| 35 | +Running job collect-pods-logs... OK |
| 36 | +Running job events-list... OK |
| 37 | +Running job configmap-list... OK |
| 38 | +Running job service-list... OK |
| 39 | +Running job deployment-list... OK |
| 40 | +Running job statefulset-list... OK |
| 41 | +Running job replicaset-list... OK |
| 42 | +Running job lease-list... OK |
| 43 | +Running job k8s-version... OK |
| 44 | +Running job crd-info... OK |
| 45 | +Running job nodes-info... OK |
| 46 | +Running job metrics-information... OK |
| 47 | +Running job helm-info... OK |
| 48 | +Running job helm-deployments... OK |
| 49 | +Supportpkg successfully generated: kic-supportpkg-1711384966.tar.gz |
| 50 | +
|
| 51 | +``` |
0 commit comments