|
| 1 | +# support-util |
| 2 | + |
| 3 | +This script supports only orchestrated environment, speeding up the data/log collection for Sysdig pods. |
| 4 | +Data collection for Sysdig pods will always include: |
| 5 | +- getting `ConfigMap` |
| 6 | +- getting `DaemonSet` definition |
| 7 | +- getting `Deployment` definition |
| 8 | +- getting Kubernetes version |
| 9 | +- getting nodes |
| 10 | +- getting stats for nodes, especially CPU and Memory, where Sysdig pods are running |
| 11 | +- a count of cluster objects, like: |
| 12 | + - Deployments |
| 13 | + - ReplicaSets |
| 14 | + - Namespaces |
| 15 | + - ConfigMaps |
| 16 | + - Pods |
| 17 | + |
| 18 | +that we may need if you're having sizing issue with clusterShield. |
| 19 | + |
| 20 | +# Supported Sysdig product |
| 21 | + |
| 22 | +Below the list of supported product |
| 23 | + |
| 24 | +- Sysdig `agent` (deployed with `sysdig-deploy` chart) |
| 25 | +- Sysdig `cluster-shield` (deployed with `sysdig-deploy` chart) |
| 26 | +- Sysdig `node-analyzer` (deployed with `sysdig-deploy` chart), `kspm-analyzer`, `host-scanner` and `runtime-scanner` |
| 27 | +- Sysdig `kspm-collector` (deployed with `sysdig-deploy` chart) |
| 28 | +- Sysdig `host-shield` (deployed with `shield` chart) |
| 29 | + |
| 30 | +# Supported k8s version |
| 31 | +The script uses `kubectl` or `oc` standard commands, like `get pod`, `get deployment` and so on. |
| 32 | +Environments used for the test are Kubernetes v1.28 and greater and OpenShift v4.12 and greater. |
| 33 | + |
| 34 | +# Note for airgapped environment or enviroment with limited access to Internet |
| 35 | +The script execute a curl on a S3 url provided by Sysdig support, if your env is airgapped or with limited access to Internet, you can just hit `Control+c` when the script ask for such S3 url, and share the archive as attachment of the case. |
| 36 | + |
| 37 | +# Usage |
| 38 | + |
| 39 | +The script takes in input two parameters: |
| 40 | +- `namespace` (mandatory) |
| 41 | +- `podName` (optional) |
| 42 | + |
| 43 | +If you do not pass the `podName` parameter, the script will collect what is described at the beginning of this README. If `podName` is passed, the script will collect the information related to the specific pod, plus what is included in the list of data collection. |
| 44 | + |
| 45 | +At the end of the execution, please remove the archive file and the directory created by the script. |
| 46 | + |
| 47 | +**WARNING - If your cluster have a good amount of nodes, 10 or more, please make sure to have a good amount of space available in the host where you'll run the script since log size, and their number, can vary based on the number of sysdig pod running in your cluster** |
0 commit comments