Container Trait
The Container trait can be used to configure properties of the container where the integration will run.
It also provides configuration for Services associated to the container.
This trait is available in the following profiles: Kubernetes, Knative, OpenShift.
The container trait is a platform trait: disabling it may compromise the platform functionality. |
Configuration
Trait properties can be specified when running any integration with the CLI:
$ kamel run --trait container.[key]=[value] --trait container.[key2]=[value2] integration.groovy
The following configuration options are available:
Property | Type | Description |
---|---|---|
|
|
Can be used to enable or disable a trait. All traits share this common property. |
|
|
|
|
|
The minimum amount of CPU required. |
|
|
The minimum amount of memory required. |
|
|
The maximum amount of CPU required. |
|
|
The maximum amount of memory required. |
|
|
Can be used to enable/disable exposure via kubernetes Service. |
|
|
To configure a different port exposed by the container (default |
|
|
To configure a different port name for the port exposed by the container (default |
|
|
To configure under which service port the container port is to be exposed (default |
|
|
To configure under which service port name the container port is to be exposed (default |
|
|
The main container name. It’s named |
|
|
ProbesEnabled enable/disable probes on the container (default |
|
|
Path to access on the probe ( default |
|
|
Number of seconds after the container has started before liveness probes are initiated. |
|
|
Number of seconds after which the probe times out. Applies to the liveness probe. |
|
|
How often to perform the probe. Applies to the liveness probe. |
|
|
Minimum consecutive successes for the probe to be considered successful after having failed. Applies to the liveness probe. |
|
|
Minimum consecutive failures for the probe to be considered failed after having succeeded. Applies to the liveness probe. |
|
|
Number of seconds after the container has started before readiness probes are initiated. |
|
|
Number of seconds after which the probe times out. Applies to the readiness probe. |
|
|
How often to perform the probe. Applies to the readiness probe. |
|
|
Minimum consecutive successes for the probe to be considered successful after having failed. Applies to the readiness probe. |
|
|
Minimum consecutive failures for the probe to be considered failed after having succeeded. Applies to the readiness probe. |