> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/npp/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/npp/latest/technical-reference/npp.cennso.com_downloadtests.md).

# DownloadTest Custom Resource Definition

`DownloadTest` Custom Resource (CR) is used to deploy the Download Test probe. The probe runs a single download test and stores the results in the CR `status.output` field in Prometheus exposition format.

Using the `DownloadTest` CR, you can configure:

- Pod and container selection
- Download test configurations, sources, and targets
- Timeout settings

For more information, see [Download Test](https://docs.cennso.com/components/npp/latest/concepts/download-test.md).

## Configuration example

This is a sample `DownloadTest` CR that you can use to run a download test from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: DownloadTest
metadata:
  name: download-test-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  timeout: 60s      # Abort requests that take longer than 60 seconds
  configurations:
    - name: All Interfaces
      source: 0.0.0.0      # Bind to all network interfaces
      nameserver: 8.8.8.8  # DNS resolver for target addresses
      targets:
        - address: https://google.com
          labels:
            public: "true"  # Custom Prometheus label for this target
          name: Google Website
          nameserver: 8.8.8.8  # Override DNS resolver for this target
```

## Configuration parameters

These are all parameters that you can use to configure the `DownloadTest` CR:

**CRD specification:** [npp.cennso.com_downloadtests.yaml](https://docs.cennso.com/api/spec/components/npp/latest/assets/crds/npp.cennso.com_downloadtests.yaml?form=bundled&kind=crd)

## Read more

- [Download Test](https://docs.cennso.com/components/npp/latest/concepts/download-test.md)
