Class DeploymentSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.extensions.DeploymentSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeploymentSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeploymentSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeploymentSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourceDeploymentSpec is the specification of the desired behavior of the Deployment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeploymentSpec()No args constructor for use in serializationDeploymentSpec(Integer minReadySeconds, Boolean paused, Integer progressDeadlineSeconds, Integer replicas, Integer revisionHistoryLimit, RollbackConfig rollbackTo, io.fabric8.kubernetes.api.model.LabelSelector selector, DeploymentStrategy strategy, io.fabric8.kubernetes.api.model.PodTemplateSpec template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentSpecBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetMinReadySeconds()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.BooleangetPaused()Indicates that the deployment is paused and will not be processed by the deployment controller.IntegergetProgressDeadlineSeconds()The maximum time in seconds for a deployment to make progress before it is considered to be failed.IntegergetReplicas()Number of desired pods.IntegergetRevisionHistoryLimit()The number of old ReplicaSets to retain to allow rollback.RollbackConfiggetRollbackTo()DeploymentSpec is the specification of the desired behavior of the Deployment.io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()DeploymentSpec is the specification of the desired behavior of the Deployment.DeploymentStrategygetStrategy()DeploymentSpec is the specification of the desired behavior of the Deployment.io.fabric8.kubernetes.api.model.PodTemplateSpecgetTemplate()DeploymentSpec is the specification of the desired behavior of the Deployment.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMinReadySeconds(Integer 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.voidsetPaused(Boolean paused)Indicates that the deployment is paused and will not be processed by the deployment controller.voidsetProgressDeadlineSeconds(Integer progressDeadlineSeconds)The maximum time in seconds for a deployment to make progress before it is considered to be failed.voidsetReplicas(Integer replicas)Number of desired pods.voidsetRevisionHistoryLimit(Integer revisionHistoryLimit)The number of old ReplicaSets to retain to allow rollback.voidsetRollbackTo(RollbackConfig rollbackTo)DeploymentSpec is the specification of the desired behavior of the Deployment.voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)DeploymentSpec is the specification of the desired behavior of the Deployment.voidsetStrategy(DeploymentStrategy strategy)DeploymentSpec is the specification of the desired behavior of the Deployment.voidsetTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)DeploymentSpec is the specification of the desired behavior of the Deployment.DeploymentSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
DeploymentSpec
public DeploymentSpec()
No args constructor for use in serialization
-
DeploymentSpec
public DeploymentSpec(Integer minReadySeconds, Boolean paused, Integer progressDeadlineSeconds, Integer replicas, Integer revisionHistoryLimit, RollbackConfig rollbackTo, io.fabric8.kubernetes.api.model.LabelSelector selector, DeploymentStrategy strategy, io.fabric8.kubernetes.api.model.PodTemplateSpec template)
-
-
Method Detail
-
getMinReadySeconds
public Integer getMinReadySeconds()
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)
-
setMinReadySeconds
public void setMinReadySeconds(Integer 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)
-
getPaused
public Boolean getPaused()
Indicates that the deployment is paused and will not be processed by the deployment controller.
-
setPaused
public void setPaused(Boolean paused)
Indicates that the deployment is paused and will not be processed by the deployment controller.
-
getProgressDeadlineSeconds
public Integer getProgressDeadlineSeconds()
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".
-
setProgressDeadlineSeconds
public void setProgressDeadlineSeconds(Integer 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".
-
getReplicas
public Integer getReplicas()
Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
-
setReplicas
public void setReplicas(Integer replicas)
Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
-
getRevisionHistoryLimit
public Integer getRevisionHistoryLimit()
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".
-
setRevisionHistoryLimit
public void setRevisionHistoryLimit(Integer 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".
-
getRollbackTo
public RollbackConfig getRollbackTo()
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
setRollbackTo
public void setRollbackTo(RollbackConfig rollbackTo)
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
getSelector
public io.fabric8.kubernetes.api.model.LabelSelector getSelector()
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
setSelector
public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
getStrategy
public DeploymentStrategy getStrategy()
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
setStrategy
public void setStrategy(DeploymentStrategy strategy)
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
getTemplate
public io.fabric8.kubernetes.api.model.PodTemplateSpec getTemplate()
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
setTemplate
public void setTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
edit
public DeploymentSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeploymentSpecBuilder>
-
toBuilder
public DeploymentSpecBuilder toBuilder()
-
-