Interface ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithLivenessProbe<ParentT>
- Type Parameters:
ParentT- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.ContainerInstanceDefinition<ParentT>,ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT>,ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT>
- Enclosing interface:
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages
public static interface ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithLivenessProbe<ParentT>
The stage of the container instance definition allowing to specify liveness probe.
Azure Container Instances supports liveness probes so that you can configure your containers within your
container group to restart if critical functionality is not working.
-
Method Summary
Modifier and TypeMethodDescriptionContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbe(ContainerProbe livenessProbe) Specifies the container's liveness probe.ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeExecutionCommand(List<String> command, int probePeriodSeconds) Specifies the container's liveness probe to execute a given command at a given interval.ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeExecutionCommand(List<String> command, int probePeriodSeconds, int failureThreshold) Specifies the container's liveness probe to execute a given command at a given interval.ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeHttpGet(String path, int port, int probePeriodSeconds) Specifies the container's liveness probe to perform an Http Get at a given interval.ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeHttpGet(String path, int port, int probePeriodSeconds, int failureThreshold) Specifies the container's liveness probe to perform an Http Get at a given interval.
-
Method Details
-
withLivenessProbeExecutionCommand
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeExecutionCommand(List<String> command, int probePeriodSeconds) Specifies the container's liveness probe to execute a given command at a given interval.If the probe command execution fails, the container will restart.
Only 1 liveness probe can be set for a given container.
- Parameters:
command- the command for the probe to executeprobePeriodSeconds- the interval at which the command executes- Returns:
- the next stage of the definition
- See Also:
-
withLivenessProbeExecutionCommand
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeExecutionCommand(List<String> command, int probePeriodSeconds, int failureThreshold) Specifies the container's liveness probe to execute a given command at a given interval.After the probe command execution failure reaches the given threshold, the container will restart.
Only 1 liveness probe can be set for a given container.
- Parameters:
command- the command for the probe to executeprobePeriodSeconds- the interval at which the command executesfailureThreshold- the consecutive probe failure count before the container restarts- Returns:
- the next stage of the definition
- See Also:
-
withLivenessProbeHttpGet
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeHttpGet(String path, int port, int probePeriodSeconds) Specifies the container's liveness probe to perform an Http Get at a given interval.If the probe HTTP GET operation fails with non-200 response, the container will restart.
Only 1 liveness probe can be set for a given container.
- Parameters:
path- the path to perform the Http Get, starts with "/"port- the port number to probeprobePeriodSeconds- the interval at which the Http Get performs- Returns:
- the next stage of the definition
- See Also:
-
withLivenessProbeHttpGet
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbeHttpGet(String path, int port, int probePeriodSeconds, int failureThreshold) Specifies the container's liveness probe to perform an Http Get at a given interval.After the probe HTTP GET failure with non-200 response reaches the given threshold, the container will restart.
Only 1 liveness probe can be set for a given container.
- Parameters:
path- the path to perform the Http Get, starts with "/"port- the port number to probeprobePeriodSeconds- the interval at which the Http Get performsfailureThreshold- the consecutive probe failure count before the container restarts- Returns:
- the next stage of the definition
- See Also:
-
withLivenessProbe
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithContainerInstanceAttach<ParentT> withLivenessProbe(ContainerProbe livenessProbe) Specifies the container's liveness probe.- Parameters:
livenessProbe- the liveness probe- Returns:
- the next stage of the definition
- See Also:
-