영어로 읽기

다음을 통해 공유


KubernetesProbesExtensions.AddKubernetesProbes Method

Definition

Overloads

AddKubernetesProbes(IServiceCollection)

Registers liveness, startup and readiness probes using the default options.

AddKubernetesProbes(IServiceCollection, IConfigurationSection)

Registers liveness, startup and readiness probes using the configured options.

AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)

Registers liveness, startup and readiness probes using the configured options.

AddKubernetesProbes(IServiceCollection)

Source:
KubernetesProbesExtensions.cs

Registers liveness, startup and readiness probes using the default options.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);

Parameters

services
IServiceCollection

The dependency injection container to add the probe to.

Returns

The value of services.

Applies to

.NET 9 (package-provided) 및 기타 버전
제품 버전
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddKubernetesProbes(IServiceCollection, IConfigurationSection)

Source:
KubernetesProbesExtensions.cs

Registers liveness, startup and readiness probes using the configured options.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);

Parameters

services
IServiceCollection

The dependency injection container to add the probe to.

section
IConfigurationSection

Configuration for KubernetesProbesOptions.

Returns

The value of services.

Applies to

.NET 9 (package-provided) 및 기타 버전
제품 버전
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)

Source:
KubernetesProbesExtensions.cs

Registers liveness, startup and readiness probes using the configured options.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Probes.KubernetesProbesOptions> configure);

Parameters

services
IServiceCollection

The dependency injection container to add the probe to.

configure
Action<KubernetesProbesOptions>

Configure action for KubernetesProbesOptions.

Returns

The value of services.

Applies to

.NET 9 (package-provided) 및 기타 버전
제품 버전
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)