Poll a given running container for an arbitrary log message to confirm liveness. If a livenessProbe is NOT defined then we fallback to check if the container is in a running state.
Fields inherited from class | Fields |
---|---|
class DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
Type | Name and description |
---|---|
LivenessProbe |
livenessProbe |
Constructor and description |
---|
DockerLivenessContainer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected Date |
getInternalSince() |
|
def |
lastInspection() |
|
void |
livenessProbe(String logContains) Define the livenessProbe options for this liveness check. |
|
void |
livenessProbe(long pollTime, long pollInterval, String logContains) Define the livenessProbe options for this liveness check. |
|
void |
runRemoteCommand() |
Define the livenessProbe options for this liveness check. We'll default to probing for 10 minutes with 30 second intervals between each livenessProbe.
logContains
- content within container log we will search forDefine the livenessProbe options for this liveness check.
pollTime
- how long we will poll forpollInterval
- interval between poll requestslogContains
- content within container log we will search forGroovy Documentation