Package org.cdk8s.plus23.k8s
Interface DeploymentStrategy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DeploymentStrategy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.274Z") @Stability(Stable) public interface DeploymentStrategy extends software.amazon.jsii.JsiiSerializable
DeploymentStrategy describes how to replace existing pods with new ones.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DeploymentStrategy.Builder
A builder forDeploymentStrategy
static class
DeploymentStrategy.Jsii$Proxy
An implementation forDeploymentStrategy
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeploymentStrategy.Builder
builder()
default RollingUpdateDeployment
getRollingUpdate()
Rolling update config params.default IoK8SApiAppsV1DeploymentStrategyType
getType()
Type of deployment.
-
-
-
Method Detail
-
getRollingUpdate
@Stability(Stable) @Nullable default RollingUpdateDeployment getRollingUpdate()
Rolling update config params.Present only if DeploymentStrategyType = RollingUpdate.
-
getType
@Stability(Stable) @Nullable default IoK8SApiAppsV1DeploymentStrategyType getType()
Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.Possible enum values:
"Recreate"
Kill all existing pods before creating new ones."RollingUpdate"
Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one.
Default: RollingUpdate.
-
builder
@Stability(Stable) static DeploymentStrategy.Builder builder()
- Returns:
- a
DeploymentStrategy.Builder
ofDeploymentStrategy
-
-