Interface DeploymentSpec
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DeploymentSpec.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.509Z") @Stability(Stable) public interface DeploymentSpec extends software.amazon.jsii.JsiiSerializable
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeploymentSpec.BuilderA builder forDeploymentSpecstatic classDeploymentSpec.Jsii$ProxyAn implementation forDeploymentSpec
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static DeploymentSpec.Builderbuilder()default NumbergetMinReadySeconds()Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.default BooleangetPaused()Indicates that the deployment is paused.default NumbergetProgressDeadlineSeconds()The maximum time in seconds for a deployment to make progress before it is considered to be failed.default NumbergetReplicas()Number of desired pods.default NumbergetRevisionHistoryLimit()The number of old ReplicaSets to retain to allow rollback.LabelSelectorgetSelector()Label selector for pods.default DeploymentStrategygetStrategy()The deployment strategy to use to replace existing pods with new ones.PodTemplateSpecgetTemplate()Template describes the pods that will be created.
-
-
-
Method Detail
-
getSelector
@Stability(Stable) @NotNull LabelSelector getSelector()
Label selector for pods.Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
-
getTemplate
@Stability(Stable) @NotNull PodTemplateSpec getTemplate()
Template describes the pods that will be created.
-
getMinReadySeconds
@Stability(Stable) @Nullable default Number getMinReadySeconds()
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.Defaults to 0 (pod will be considered available as soon as it is ready)
Default: 0 (pod will be considered available as soon as it is ready)
-
getPaused
@Stability(Stable) @Nullable default Boolean getPaused()
Indicates that the deployment is paused.
-
getProgressDeadlineSeconds
@Stability(Stable) @Nullable default Number getProgressDeadlineSeconds()
The maximum time in seconds 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. Defaults to 600s.
Default: 600s.
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
Number of desired pods.This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
Default: 1.
-
getRevisionHistoryLimit
@Stability(Stable) @Nullable default Number getRevisionHistoryLimit()
The number of old ReplicaSets to retain to allow rollback.This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.
Default: 10.
-
getStrategy
@Stability(Stable) @Nullable default DeploymentStrategy getStrategy()
The deployment strategy to use to replace existing pods with new ones.
-
builder
@Stability(Stable) static DeploymentSpec.Builder builder()
- Returns:
- a
DeploymentSpec.BuilderofDeploymentSpec
-
-