Package org.cdk8s.plus22
Interface StatefulSetProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,PodSpecProps,PodTemplateProps,ResourceProps
- All Known Implementing Classes:
StatefulSetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.52.1 (build 5ccc8f6)", date="2022-02-08T00:13:45.317Z") @Stability(Stable) public interface StatefulSetProps extends software.amazon.jsii.JsiiSerializable, ResourceProps, PodTemplateProps
Properties for initialization of `StatefulSet`.
-
-
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 Abstract Methods Default Methods Modifier and Type Method Description static StatefulSetProps.Builderbuilder()default BooleangetDefaultSelector()Automatically allocates a pod selector for this statefulset.default PodManagementPolicygetPodManagementPolicy()Pod management policy to use for this statefulset.default NumbergetReplicas()Number of desired pods.ServicegetService()Service to associate with the statefulset.-
Methods inherited from interface org.cdk8s.plus22.PodSpecProps
getContainers, getRestartPolicy, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus22.PodTemplateProps
getPodMetadata
-
Methods inherited from interface org.cdk8s.plus22.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getService
@Stability(Stable) @NotNull Service getService()
Service to associate with the statefulset.
-
getDefaultSelector
@Stability(Stable) @Nullable default Boolean getDefaultSelector()
Automatically allocates a pod selector for this statefulset.If this is set to
falseyou must define your selector throughstatefulset.podMetadata.addLabel()andstatefulset.selectByLabel().Default: true
-
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
-
builder
@Stability(Stable) static StatefulSetProps.Builder builder()
- Returns:
- a
StatefulSetProps.BuilderofStatefulSetProps
-
-