Interface DeploymentProps

    • Method Detail

      • getProgressDeadline

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getProgressDeadline()
        The maximum duration for a deployment to make progress before it is considered to be failed.

        The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status.

        Note that progress will not be estimated during the time a deployment is paused.

        Default: Duration.seconds(600)

        See Also:
        https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds
      • getReplicas

        @Stability(Stable)
        @Nullable
        default Number getReplicas()
        Number of desired pods.

        Default: 2

      • getStrategy

        @Stability(Stable)
        @Nullable
        default DeploymentStrategy getStrategy()
        Specifies the strategy used to replace old Pods by new ones.

        Default: - RollingUpdate with maxSurge and maxUnavailable set to 25%.