For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

SpeedtestMonitor Custom Resource Definition

SpeedtestMonitor Custom Resource (CR) deploys the Speedtest Monitor probe. The probe executes Ookla speedtestOpens in a new tab measurements in the cluster environment and exposes the results as Prometheus metrics.

Using the SpeedtestMonitor CR, you can configure:

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

For more information, see Speedtest Monitor.

Configuration example

This is a sample SpeedtestMonitor CR that you can use to monitor network bandwidth from a pod:

yaml

Configuration parameters

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

  • SpeedtestMonitorKind
  • npp.cennso.comGroup
  • v1alpha1Version
apiVersion:
npp.cennso.com/v1alpha1
kind:
SpeedtestMonitor
listKind:
SpeedtestMonitorList
plural:
speedtestmonitors
singular:
speedtestmonitor
categories:
[cennso]
Schema
  • apiVersionstringrequiredConstant"npp.cennso.com/v1alpha1"
    APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.
  • kindstringrequiredConstant"SpeedtestMonitor"
    Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.
  • metadataobjectrequired
    Standard object metadata. More information: ObjectMetaOpens in a new tab.
  • specobject
    SpeedtestMonitorSpec defines the desired state of the SpeedtestMonitor Custom Resource.
    • configurationsobject[]required
      List of test configurations
    • intervalstringrequired
      Default time interval for speedtest runs
    • podSelectorobjectrequired

      PodSelector must point to a single monitored pod. If it matches more or fewer pods, the probe will fail.

    • timeoutstringrequired
      Default time interval after which speedtest runs time out
    • containerstring

      Container specifies the name of the Pod container that the probe is injected into. If not set, the random container is used.

    • imagePullSecretsobject[]

      imagePullSecrets holds the proper container registry credentials.

      x-kubernetes-list-map-keysx-kubernetes-list-type
    • initProbeImagestring

      initProbeImage overrides the container image for the init probe container.

    • initProbeImagePullPolicystring

      InitProbeImagePullPolicy specifies if or when to pull a container image for probe init.

      Allowed values:"IfNotPresent""Always""Never"
    • logLevelstring
      Describes the logging level for NPP.
      Allowed values:"debug""info""warn""error"
    • metricsProxyImagestring

      metricsProxyImage overrides the container image for a metrics proxy.

    • metricsProxyImagePullPolicystring

      metricsProxyImagePullPolicy specifies the image pull policy if/when to pull a container image for a metrics proxy.

      Allowed values:"IfNotPresent""Always""Never"
    • probeImagestring

      ProbeImage overrides the container image for the probe.

    • probeImagePullPolicystring

      ProbeImagePullPolicy specifies if or when to pull a container image for a probe.

      Allowed values:"IfNotPresent""Always""Never"
    • serviceAccountNamestring

      serviceAccountName specifies the name of the ServiceAccount which should be used for managing the probe.

    • tolerationsobject[]
      Kubernetes tolerations set on the pods
  • statusobject
    SpeedtestMonitorStatus defines the observed state of the SpeedtestMonitor Custom Resource.
    • conditionsobject[]
      Represents the observations of the current state of this Custom Resource.
      x-kubernetes-list-map-keysx-kubernetes-list-type

Read more