Probes Trait

The Probes trait allows to configure Liveness and Readiness probes on the integration container.

This trait is available in the following profiles: Kubernetes, Knative, OpenShift.

Configuration

Trait properties can be specified when running any integration with the CLI:

kamel run --trait probes.[key]=[value] integration.groovy

The following configuration options are available:

Property Type Description

probes.enabled

bool

Can be used to enable or disable a trait. All traits share this common property.

probes.bind-host

string

Configures the host on which the probe is exposed (default 0.0.0.0).

probes.bind-port

int

Configures the port on which the probe is exposed (default 8080).

probes.path

string

Path to access on the probe ( default /health).

probes.liveness-initial-delay

int32

Number of seconds after the container has started before liveness probes are initiated.

probes.liveness-timeout

int32

Number of seconds after which the probe times out. Applies to the liveness probe.

probes.liveness-period

int32

How often to perform the probe. Applies to the liveness probe.

probes.liveness-success-threshold

int32

Minimum consecutive successes for the probe to be considered successful after having failed. Applies to the liveness probe.

probes.liveness-failure-threshold

int32

Minimum consecutive failures for the probe to be considered failed after having succeeded. Applies to the liveness probe.

probes.readiness-initial-delay

int32

Number of seconds after the container has started before readiness probes are initiated.

probes.readiness-timeout

int32

Number of seconds after which the probe times out. Applies to the readiness probe.

probes.readiness-period

int32

How often to perform the probe. Applies to the readiness probe.

probes.readiness-success-threshold

int32

Minimum consecutive successes for the probe to be considered successful after having failed. Applies to the readiness probe.

probes.readiness-failure-threshold

int32

Minimum consecutive failures for the probe to be considered failed after having succeeded. Applies to the readiness probe.