Package org.cdk8s.plus25
Interface StatefulSetProps
-
- All Superinterfaces:
AbstractPodProps,software.amazon.jsii.JsiiSerializable,ResourceProps,WorkloadProps
- All Known Implementing Classes:
StatefulSetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.442Z") @Stability(Stable) public interface StatefulSetProps extends software.amazon.jsii.JsiiSerializable, WorkloadProps
Properties for initialization ofStatefulSet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStatefulSetProps.BuilderA builder forStatefulSetPropsstatic classStatefulSetProps.Jsii$ProxyAn implementation forStatefulSetProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static StatefulSetProps.Builderbuilder()default org.cdk8s.DurationgetMinReady()Minimum duration for which a newly created pod should be ready without any of its container crashing, for it to be considered available.default PodManagementPolicygetPodManagementPolicy()Pod management policy to use for this statefulset.default NumbergetReplicas()Number of desired pods.default ServicegetService()Service to associate with the statefulset.default StatefulSetUpdateStrategygetStrategy()Indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.-
Methods inherited from interface org.cdk8s.plus25.AbstractPodProps
getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getHostNetwork, getInitContainers, getIsolate, getRestartPolicy, getSecurityContext, getServiceAccount, getTerminationGracePeriod, getVolumes
-
Methods inherited from interface org.cdk8s.plus25.ResourceProps
getMetadata
-
Methods inherited from interface org.cdk8s.plus25.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.
This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
Default: Duration.seconds(0)
-
getPodManagementPolicy
@Stability(Stable) @Nullable default PodManagementPolicy getPodManagementPolicy()
Pod management policy to use for this statefulset.Default: PodManagementPolicy.ORDERED_READY
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
Number of desired pods.Default: 1
-
getService
@Stability(Stable) @Nullable default Service getService()
Service to associate with the statefulset.Default: - A new headless service will be created.
-
getStrategy
@Stability(Stable) @Nullable default StatefulSetUpdateStrategy getStrategy()
Indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.Default: - RollingUpdate with partition set to 0
-
builder
@Stability(Stable) static StatefulSetProps.Builder builder()
- Returns:
- a
StatefulSetProps.BuilderofStatefulSetProps
-
-