DeploymentSpecArgs

data class DeploymentSpecArgs(val minReadySeconds: Output<Int>? = null, val paused: Output<Boolean>? = null, val progressDeadlineSeconds: Output<Int>? = null, val replicas: Output<Int>? = null, val revisionHistoryLimit: Output<Int>? = null, val rollbackTo: Output<RollbackConfigArgs>? = null, val selector: Output<LabelSelectorArgs>? = null, val strategy: Output<DeploymentStrategyArgs>? = null, val template: Output<PodTemplateSpecArgs>) : ConvertibleToJava<DeploymentSpecArgs>

DeploymentSpec is the specification of the desired behavior of the Deployment.

Constructors

Link copied to clipboard
fun DeploymentSpecArgs(minReadySeconds: Output<Int>? = null, paused: Output<Boolean>? = null, progressDeadlineSeconds: Output<Int>? = null, replicas: Output<Int>? = null, revisionHistoryLimit: Output<Int>? = null, rollbackTo: Output<RollbackConfigArgs>? = null, selector: Output<LabelSelectorArgs>? = null, strategy: Output<DeploymentStrategyArgs>? = null, template: Output<PodTemplateSpecArgs>)

Functions

Link copied to clipboard
open override fun toJava(): DeploymentSpecArgs

Properties

Link copied to clipboard
val minReadySeconds: Output<Int>? = null

Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)

Link copied to clipboard
val paused: Output<Boolean>? = null

Indicates that the deployment is paused.

Link copied to clipboard
val progressDeadlineSeconds: Output<Int>? = null

The maximum time in seconds 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. Defaults to 600s.

Link copied to clipboard
val replicas: Output<Int>? = null

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

Link copied to clipboard
val revisionHistoryLimit: Output<Int>? = null

The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.

Link copied to clipboard
val rollbackTo: Output<RollbackConfigArgs>? = null

DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.

Link copied to clipboard
val selector: Output<LabelSelectorArgs>? = null

Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.

Link copied to clipboard
val strategy: Output<DeploymentStrategyArgs>? = null

The deployment strategy to use to replace existing pods with new ones.

Link copied to clipboard

Template describes the pods that will be created.