DeploymentSpec constructor
- Input<
int> ? minReadySeconds, - Input<
bool> ? paused, - Input<
int> ? progressDeadlineSeconds, - Input<
int> ? replicas, - Input<
int> ? revisionHistoryLimit, - Input<
RollbackConfig> ? rollbackTo, - Input<
LabelSelector> ? selector, - Input<
DeploymentStrategy> ? strategy, - required Input<
PodTemplateSpec> template,
Creates a new DeploymentSpec.
minReadySeconds 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)
paused Indicates that the deployment is paused and will not be processed by the deployment controller.
progressDeadlineSeconds 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. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
replicas Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
revisionHistoryLimit The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets".
rollbackTo DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.
selector Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
strategy The deployment strategy to use to replace existing pods with new ones.
template Template describes the pods that will be created.
Implementation
const DeploymentSpec({
this.minReadySeconds,
this.paused,
this.progressDeadlineSeconds,
this.replicas,
this.revisionHistoryLimit,
this.rollbackTo,
this.selector,
this.strategy,
required this.template,
});