= Deployment Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Deployment trait is responsible for generating the Kubernetes deployment that will make sure
the integration will run in the cluster.


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

NOTE: The deployment trait is a *platform trait* and cannot be disabled by the user.

// End of autogenerated code - DO NOT EDIT! (description)
// Start of autogenerated code - DO NOT EDIT! (configuration)
== Configuration

Trait properties can be specified when running any integration with the CLI:
[source,console]
----
$ kamel run --trait deployment.[key]=[value] --trait deployment.[key2]=[value2] integration.yaml
----
The following configuration options are available:

[cols="2m,1m,5a"]
|===
|Property | Type | Description

| deployment.enabled
| bool
| Deprecated: no longer in use.

| deployment.progress-deadline-seconds
| int32
| The maximum time in seconds for the deployment to make progress before it
is considered to be failed. It defaults to `60s`.

| deployment.strategy
| DeploymentStrategyType
| The deployment strategy to use to replace existing pods with new ones.

| deployment.rolling-update-max-unavailable
| k8s.io/apimachinery/pkg/util/intstr.IntOrString
| The maximum number of pods that can be unavailable during the update.
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
Absolute number is calculated from percentage by rounding down.
This can not be 0 if MaxSurge is 0.
Defaults to `25%`.

| deployment.rolling-update-max-surge
| k8s.io/apimachinery/pkg/util/intstr.IntOrString
| The maximum number of pods that can be scheduled above the desired number of
pods.
Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
This can not be 0 if MaxUnavailable is 0.
Absolute number is calculated from percentage by rounding up.
Defaults to `25%`.

|===

// End of autogenerated code - DO NOT EDIT! (configuration)
