> 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_speedtesttests.md).

# SpeedtestTest Custom Resource Definition

`SpeedtestTest` Custom Resource (CR) deploys the Speedtest Test probe. The probe executes a single [Ookla speedtest](https://www.speedtest.net/) measurement in the cluster environment and stores the results in the CR `status.output` field in Prometheus exposition format.

Using the `SpeedtestTest` CR, you can configure:

- Pod and container selection
- Speedtest configurations, sources, and server selection
- Test timeout settings

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

## Configuration example

This is a sample `SpeedtestTest` CR that you can use to run a one-time bandwidth measurement from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: SpeedtestTest
metadata:
  name: speedtest-test-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  timeout: 5m       # Abort runs that take longer than 5 minutes
  configurations:
    - name: Nearest server
      source: 0.0.0.0         # Bind to all network interfaces
    - name: Pinned server
      sourceInterface: eth0   # Bind to the live address of eth0
      serverID: 12345         # Test against a specific Ookla server
    - name: Custom server
      sourceInterface: eth0
      serverURL: "https://speedtest.example.com:8080"  # Test against a custom speedtest server
```

## Configuration parameters

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

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

## Read more

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