Package org.cdk8s.plus20
Interface DeploymentProps
-
- All Superinterfaces:
AbstractPodProps,software.amazon.jsii.JsiiSerializable,ResourceProps,WorkloadProps
- All Known Implementing Classes:
DeploymentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-26T11:02:25.451Z") @Stability(Stable) public interface DeploymentProps extends software.amazon.jsii.JsiiSerializable, WorkloadProps
Properties for `Deployment`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeploymentProps.BuilderA builder forDeploymentPropsstatic classDeploymentProps.Jsii$ProxyAn implementation forDeploymentProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeploymentProps.Builderbuilder()default NumbergetReplicas()Number of desired pods.default DeploymentStrategygetStrategy()Specifies the strategy used to replace old Pods by new ones.-
Methods inherited from interface org.cdk8s.plus20.AbstractPodProps
getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus20.ResourceProps
getMetadata
-
Methods inherited from interface org.cdk8s.plus20.WorkloadProps
getDefaultSelector, getPodMetadata
-
-
-
-
Method Detail
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
Number of desired pods.Default: 1
-
getStrategy
@Stability(Stable) @Nullable default DeploymentStrategy getStrategy()
Specifies the strategy used to replace old Pods by new ones.Default: - RollingUpdate with maxSurge and maxUnavailable set to 25%.
-
builder
@Stability(Stable) static DeploymentProps.Builder builder()
- Returns:
- a
DeploymentProps.BuilderofDeploymentProps
-
-