Package org.cdk8s.plus24
Interface DeploymentProps
-
- All Superinterfaces:
AbstractPodProps
,software.amazon.jsii.JsiiSerializable
,ResourceProps
,WorkloadProps
- All Known Implementing Classes:
DeploymentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.75.0 (build 63bb957)", date="2023-02-21T02:37:35.207Z") @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 class
DeploymentProps.Builder
A builder forDeploymentProps
static class
DeploymentProps.Jsii$Proxy
An implementation forDeploymentProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeploymentProps.Builder
builder()
default org.cdk8s.Duration
getMinReady()
Minimum duration for which a newly created pod should be ready without any of its container crashing, for it to be considered available.default org.cdk8s.Duration
getProgressDeadline()
The maximum duration for a deployment to make progress before it is considered to be failed.default Number
getReplicas()
Number of desired pods.default DeploymentStrategy
getStrategy()
Specifies the strategy used to replace old Pods by new ones.-
Methods inherited from interface org.cdk8s.plus24.AbstractPodProps
getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getIsolate, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus24.ResourceProps
getMetadata
-
Methods inherited from interface org.cdk8s.plus24.WorkloadProps
getPodMetadata, getSelect, getSpread
-
-
-
-
Method Detail
-
getMinReady
@Stability(Stable) @Nullable default org.cdk8s.Duration getMinReady()
Minimum duration for which a newly created pod should be ready without any of its container crashing, for it to be considered available.Zero means the pod will be considered available as soon as it is ready.
Default: Duration.seconds(0)
-
getProgressDeadline
@Stability(Stable) @Nullable default org.cdk8s.Duration getProgressDeadline()
The maximum duration for a deployment to make progress before it is considered to be failed.The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status.
Note that progress will not be estimated during the time a deployment is paused.
Default: Duration.seconds(600)
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
Number of desired pods.Default: 2
-
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.Builder
ofDeploymentProps
-
-