Interface RollingUpdateStatefulSetStrategy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RollingUpdateStatefulSetStrategy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.811Z") @Stability(Stable) public interface RollingUpdateStatefulSetStrategy extends software.amazon.jsii.JsiiSerializable
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRollingUpdateStatefulSetStrategy.BuilderA builder forRollingUpdateStatefulSetStrategystatic classRollingUpdateStatefulSetStrategy.Jsii$ProxyAn implementation forRollingUpdateStatefulSetStrategy
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static RollingUpdateStatefulSetStrategy.Builderbuilder()default IntOrStringgetMaxUnavailable()The maximum number of pods that can be unavailable during the update.default NumbergetPartition()Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.
-
-
-
Method Detail
-
getMaxUnavailable
@Stability(Stable) @Nullable default IntOrString getMaxUnavailable()
The maximum number of pods that can be unavailable during the update.Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
Default: 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
-
getPartition
@Stability(Stable) @Nullable default Number getPartition()
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
-
builder
@Stability(Stable) static RollingUpdateStatefulSetStrategy.Builder builder()
-
-