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

# PingTest Custom Resource Definition

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

Using the `PingTest` CR, you can configure:

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

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

## Configuration example

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

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: PingTest
metadata:
  name: ping-test-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  timeout: 5s       # Abort requests that take longer than 5 seconds
  configurations:
    - name: Ping from any interface
      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
          name: Google Website
```

## Configuration parameters

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

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

## Read more

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