Interface StatefulSetProps

    • 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)

        See Also:
        https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#min-ready-seconds
      • 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