이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 59. DeploymentTemplate schema reference
Used in: CruiseControlTemplate, EntityOperatorTemplate, JmxTransTemplate, KafkaBridgeTemplate, KafkaConnectTemplate, KafkaExporterTemplate
Full list of DeploymentTemplate schema properties
Use deploymentStrategy to specify the strategy used to replace old pods with new ones when deployment configuration changes.
Use one of the following values:
-
RollingUpdate: Pods are restarted with zero downtime. -
Recreate: Pods are terminated before new ones are created.
Using the Recreate deployment strategy has the advantage of not requiring spare resources, but the disadvantage is the application downtime.
Example showing the deployment strategy set to Recreate.
# ...
template:
deployment:
deploymentStrategy: Recreate
# ...
# ...
template:
deployment:
deploymentStrategy: Recreate
# ...
This configuration change does not cause a rolling update.
59.1. DeploymentTemplate schema properties 링크 복사링크가 클립보드에 복사되었습니다!
| Property | Property type | Description |
|---|---|---|
| metadata | Metadata applied to the resource. | |
| deploymentStrategy | string (one of [RollingUpdate, Recreate]) |
Pod replacement strategy for deployment configuration changes. Valid values are |