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.
Configuration example
This is a sample PingTest CR that you can use to run a ping test from a pod:
Configuration parameters
These are all parameters that you can use to configure the PingTest CR:
- PingTestKind
- npp.cennso.comGroup
- v1alpha1Version
- apiVersion:
- npp.cennso.com/v1alpha1
- kind:
- PingTest
- listKind:
- PingTestList
- plural:
- pingtests
- singular:
- pingtest
- categories:
- [cennso]
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"PingTest"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.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectPingTestSpec defines the desired state of the PingTest Custom Resource.configurationsobject[]requiredList of test configurationspodSelectorobjectrequiredPodSelectormust point to a single monitored pod. If it matches more or fewer pods, the probe will fail.containerstringContainerspecifies the name of the Pod container that the probe is injected into. If not set, the random container is used.imagePullSecretsobject[]imagePullSecretsholds the proper container registry credentials.x-kubernetes-list-map-keysx-kubernetes-list-typeinitProbeImagestringinitProbeImageoverrides the container image for the init probe container.initProbeImagePullPolicystringInitProbeImagePullPolicyspecifies if or when to pull a container image for probe init.Allowed values:"IfNotPresent""Always""Never"logLevelstringDescribes the logging level for NPP.Allowed values:"debug""info""warn""error"probeImagestringProbeImageoverrides the container image for the probe.probeImagePullPolicystringProbeImagePullPolicyspecifies if or when to pull a container image for a probe.Allowed values:"IfNotPresent""Always""Never"serviceAccountNamestringserviceAccountNamespecifies the name of the ServiceAccount which should be used for managing the probe.timeoutstringDefault time interval after which ping requests time outtolerationsobject[]Kubernetes tolerations set on the pods
statusobjectPingTestStatus defines the observed state of the PingTest Custom Resource.conditionsobject[]Represents the observations of the current state of this Custom Resource.x-kubernetes-list-map-keysx-kubernetes-list-typeoutputstringOutput of the last test in the Prometheus metrics format.