Class DeploymentSpec.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.DeploymentSpec.Builder
-
- Enclosing class:
- DeploymentSpec
public static class DeploymentSpec.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentSpec
build()
DeploymentSpec.Builder
minReadySeconds(java.lang.Number 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.DeploymentSpec.Builder
paused(java.lang.Boolean paused)
Indicates that the deployment is paused.DeploymentSpec.Builder
progressDeadlineSeconds(java.lang.Number progressDeadlineSeconds)
The maximum time in seconds for a deployment to make progress before it is considered to be failed.DeploymentSpec.Builder
replicas(java.lang.Number replicas)
Number of desired pods.DeploymentSpec.Builder
revisionHistoryLimit(java.lang.Number revisionHistoryLimit)
The number of old ReplicaSets to retain to allow rollback.DeploymentSpec.Builder
selector(@NonNull LabelSelector selector)
DeploymentSpec.Builder
strategy(DeploymentStrategy strategy)
DeploymentSpec.Builder
template(@NonNull PodTemplateSpec template)
java.lang.String
toString()
-
-
-
Method Detail
-
minReadySeconds
public DeploymentSpec.Builder minReadySeconds(java.lang.Number 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)- Returns:
this
.
-
paused
public DeploymentSpec.Builder paused(java.lang.Boolean paused)
Indicates that the deployment is paused.- Returns:
this
.
-
progressDeadlineSeconds
public DeploymentSpec.Builder progressDeadlineSeconds(java.lang.Number 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. Defaults to 600s.- Returns:
this
.
-
replicas
public DeploymentSpec.Builder replicas(java.lang.Number replicas)
Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.- Returns:
this
.
-
revisionHistoryLimit
public DeploymentSpec.Builder revisionHistoryLimit(java.lang.Number revisionHistoryLimit)
The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.- Returns:
this
.
-
selector
public DeploymentSpec.Builder selector(@NonNull @NonNull LabelSelector selector)
-
strategy
public DeploymentSpec.Builder strategy(DeploymentStrategy strategy)
-
template
public DeploymentSpec.Builder template(@NonNull @NonNull PodTemplateSpec template)
-
build
public DeploymentSpec build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-