Share via


ContainerV1.LivenessProbe Property

Definition

Represents the liveness probe configuration for a container. This probe is used to determine if the container is still running and healthy. If the liveness probe fails, the container is restarted. The probe can be configured to use different mechanisms, including:

  • Executing a specific command inside the container.
  • Performing an HTTP GET request to a specified endpoint.
  • Performing a gRPC health check request to a specified service. The probe supports additional parameters such as timeouts, failure thresholds, and retry intervals to ensure flexible and reliable health checks.
[YamlDotNet.Serialization.YamlMember(Alias="livenessProbe")]
public Aspire.Hosting.Kubernetes.Resources.ProbeV1? LivenessProbe { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="livenessProbe")>]
member this.LivenessProbe : Aspire.Hosting.Kubernetes.Resources.ProbeV1 with get, set
Public Property LivenessProbe As ProbeV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to