Class StatefulSetUpdateStrategy

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
               date="2023-02-04T02:31:05.025Z")
    @Stability(Stable)
    public class StatefulSetUpdateStrategy
    extends software.amazon.jsii.JsiiObject
    StatefulSet update strategies.
    • Constructor Detail

      • StatefulSetUpdateStrategy

        protected StatefulSetUpdateStrategy​(software.amazon.jsii.JsiiObjectRef objRef)
      • StatefulSetUpdateStrategy

        protected StatefulSetUpdateStrategy​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • onDelete

        @Stability(Stable)
        @NotNull
        public static StatefulSetUpdateStrategy onDelete()
        The controller will not automatically update the Pods in a StatefulSet.

        Users must manually delete Pods to cause the controller to create new Pods that reflect modifications.

      • rollingUpdate

        @Stability(Stable)
        @NotNull
        public static StatefulSetUpdateStrategy rollingUpdate​(@Nullable
                                                              StatefulSetUpdateStrategyRollingUpdateOptions options)
        The controller will delete and recreate each Pod in the StatefulSet.

        It will proceed in the same order as Pod termination (from the largest ordinal to the smallest), updating each Pod one at a time. The Kubernetes control plane waits until an updated Pod is Running and Ready prior to updating its predecessor.

        Parameters:
        options -
      • rollingUpdate

        @Stability(Stable)
        @NotNull
        public static StatefulSetUpdateStrategy rollingUpdate()
        The controller will delete and recreate each Pod in the StatefulSet.

        It will proceed in the same order as Pod termination (from the largest ordinal to the smallest), updating each Pod one at a time. The Kubernetes control plane waits until an updated Pod is Running and Ready prior to updating its predecessor.