KubernetesProbesExtensions.AddKubernetesProbes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Registers liveness, startup and readiness probes using the default options.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The dependency injection container to add the probe to.
Returns
The value of services
.
Applies to
AddKubernetesProbes(IServiceCollection, IConfigurationSection)
Registers liveness, startup and readiness probes using the configured options.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parameters
- services
- IServiceCollection
The dependency injection container to add the probe to.
- section
- IConfigurationSection
Configuration for KubernetesProbesOptions.
Returns
The value of services
.
Applies to
AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)
Registers liveness, startup and readiness probes using the configured options.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Probes::KubernetesProbesOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Probes.KubernetesProbesOptions> configure);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Probes.KubernetesProbesOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection, configure As Action(Of KubernetesProbesOptions)) As IServiceCollection
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