Package org.cdk8s.plus20
Interface DeploymentProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,PodSpecProps,PodTemplateProps,ResourceProps
- All Known Implementing Classes:
DeploymentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.55.1 (build 07d2d90)", date="2022-04-02T02:38:57.528Z") @Stability(Stable) public interface DeploymentProps extends software.amazon.jsii.JsiiSerializable, ResourceProps, PodTemplateProps
Properties for initialization of `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 BooleangetDefaultSelector()Automatically allocates a pod selector for this deployment.default NumbergetReplicas()Number of desired pods.-
Methods inherited from interface org.cdk8s.plus20.PodSpecProps
getContainers, getRestartPolicy, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus20.PodTemplateProps
getPodMetadata
-
Methods inherited from interface org.cdk8s.plus20.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getDefaultSelector
@Stability(Stable) @Nullable default Boolean getDefaultSelector()
Automatically allocates a pod selector for this deployment.If this is set to
falseyou must define your selector throughdeployment.podMetadata.addLabel()anddeployment.selectByLabel().Default: true
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
Number of desired pods.Default: 1
-
builder
@Stability(Stable) static DeploymentProps.Builder builder()
- Returns:
- a
DeploymentProps.BuilderofDeploymentProps
-
-