# ProbeV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ProbeV1.cs)

Represents a probe configuration for Kubernetes containers. A probe is used to determine the health and readiness of a container by defining checks that can consist of various actions such as HTTP requests, executing commands, GRPC actions, or assessing TCP socket connectivity.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ProbeV1
{
    // ...
}
```

## Constructors

- [ProbeV1](/reference/api/csharp/aspire.hosting.kubernetes/probev1/constructors.md#constructor)

## Properties

- [Exec](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#exec) : [ExecActionV1?](/reference/api/csharp/aspire.hosting.kubernetes/execactionv1.md) `get; set` -- Gets or sets the execution action associated with a probe.
- [FailureThreshold](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#failurethreshold) : `int?` `get; set` -- Gets or sets the failure threshold for the probe.
- [Grpc](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#grpc) : [GrpcActionV1?](/reference/api/csharp/aspire.hosting.kubernetes/grpcactionv1.md) `get; set` -- Represents a GRPC-based action within a Kubernetes probe configuration.
- [HttpGet](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#httpget) : [HttpGetActionV1?](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1.md) `get; set` -- Represents a configuration for an HTTP GET request action as part of a Kubernetes probe mechanism.
- [InitialDelaySeconds](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#initialdelayseconds) : `int?` `get; set` -- Specifies the duration in seconds to wait before initiating the probe for the first time.
- [PeriodSeconds](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#periodseconds) : `int?` `get; set` -- Gets or sets the period in seconds between probe executions.
- [SuccessThreshold](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#successthreshold) : `int?` `get; set` -- Gets or sets the minimum consecutive successes for the probe to be considered successful after it has previously failed.
- [TcpSocket](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#tcpsocket) : [TcpSocketActionV1?](/reference/api/csharp/aspire.hosting.kubernetes/tcpsocketactionv1.md) `get; set` -- TcpSocket specifies an action based on a TCP socket connection.
- [TerminationGracePeriodSeconds](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#terminationgraceperiodseconds) : `long?` `get; set` -- Gets or sets the optional duration in seconds the system will wait for the pod to terminate gracefully after a probe triggers its termination. If the pod does not terminate within this time frame, it may be forcefully killed. A null value indicates that the termination grace period is not explicitly set.
- [TimeoutSeconds](/reference/api/csharp/aspire.hosting.kubernetes/probev1/properties.md#timeoutseconds) : `int?` `get; set` -- Specifies the number of seconds that a probe will wait for a response before timing out.
