Class V1DeploymentSpec

java.lang.Object
io.kubernetes.client.openapi.models.V1DeploymentSpec

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentSpec extends Object
DeploymentSpec is the specification of the desired behavior of the Deployment.
  • Field Details

  • Constructor Details

    • V1DeploymentSpec

      public V1DeploymentSpec()
  • Method Details

    • minReadySeconds

      public V1DeploymentSpec minReadySeconds(Integer minReadySeconds)
    • getMinReadySeconds

      @Nullable 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)
      Returns:
      minReadySeconds
    • setMinReadySeconds

      public void setMinReadySeconds(Integer minReadySeconds)
    • paused

      public V1DeploymentSpec paused(Boolean paused)
    • getPaused

      @Nullable public Boolean getPaused()
      Indicates that the deployment is paused.
      Returns:
      paused
    • setPaused

      public void setPaused(Boolean paused)
    • progressDeadlineSeconds

      public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds)
    • getProgressDeadlineSeconds

      @Nullable 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. Defaults to 600s.
      Returns:
      progressDeadlineSeconds
    • setProgressDeadlineSeconds

      public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds)
    • replicas

      public V1DeploymentSpec replicas(Integer replicas)
    • getReplicas

      @Nullable public Integer getReplicas()
      Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
      Returns:
      replicas
    • setReplicas

      public void setReplicas(Integer replicas)
    • revisionHistoryLimit

      public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit)
    • getRevisionHistoryLimit

      @Nullable 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. Defaults to 10.
      Returns:
      revisionHistoryLimit
    • setRevisionHistoryLimit

      public void setRevisionHistoryLimit(Integer revisionHistoryLimit)
    • selector

      public V1DeploymentSpec selector(V1LabelSelector selector)
    • getSelector

      public V1LabelSelector getSelector()
      Get selector
      Returns:
      selector
    • setSelector

      public void setSelector(V1LabelSelector selector)
    • strategy

      public V1DeploymentSpec strategy(V1DeploymentStrategy strategy)
    • getStrategy

      @Nullable public V1DeploymentStrategy getStrategy()
      Get strategy
      Returns:
      strategy
    • setStrategy

      public void setStrategy(V1DeploymentStrategy strategy)
    • template

      public V1DeploymentSpec template(V1PodTemplateSpec template)
    • getTemplate

      public V1PodTemplateSpec getTemplate()
      Get template
      Returns:
      template
    • setTemplate

      public void setTemplate(V1PodTemplateSpec template)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object