Class 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.KubernetesResource
    DeploymentSpec is the specification of the desired behavior of the Deployment.
    See Also:
    Serialized Form
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)