Class V1DeploymentSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1DeploymentSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1DeploymentSpec extends Object
DeploymentSpec is the specification of the desired behavior of the Deployment.
  • Field Details

  • Constructor Details

  • Method Details

    • 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)
      Returns:
      the minReadySeconds property value
    • setMinReadySeconds

      public void setMinReadySeconds(Integer minReadySeconds)
      Set the minReadySeconds property value
    • minReadySeconds

      public V1DeploymentSpec minReadySeconds(Integer minReadySeconds)
      Set minReadySeconds in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • getPaused

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

      public void setPaused(Boolean paused)
      Set the paused property value
    • paused

      public V1DeploymentSpec paused(Boolean paused)
      Set paused in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • 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. Defaults to 600s.
      Returns:
      the progressDeadlineSeconds property value
    • setProgressDeadlineSeconds

      public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds)
      Set the progressDeadlineSeconds property value
    • progressDeadlineSeconds

      public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds)
      Set progressDeadlineSeconds in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • getReplicas

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

      public void setReplicas(Integer replicas)
      Set the replicas property value
    • replicas

      public V1DeploymentSpec replicas(Integer replicas)
      Set replicas in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • 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. Defaults to 10.
      Returns:
      the revisionHistoryLimit property value
    • setRevisionHistoryLimit

      public void setRevisionHistoryLimit(Integer revisionHistoryLimit)
      Set the revisionHistoryLimit property value
    • revisionHistoryLimit

      public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit)
      Set revisionHistoryLimit in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • getSelector

      public V1LabelSelector getSelector()
      Returns:
      the selector property value
    • setSelector

      public void setSelector(V1LabelSelector selector)
      Set the selector property value
    • selector

      public V1DeploymentSpec selector(V1LabelSelector selector)
      Set selector in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • getStrategy

      public V1DeploymentStrategy getStrategy()
      Returns:
      the strategy property value
    • setStrategy

      public void setStrategy(V1DeploymentStrategy strategy)
      Set the strategy property value
    • strategy

      public V1DeploymentSpec strategy(V1DeploymentStrategy strategy)
      Set strategy in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • getTemplate

      public V1PodTemplateSpec getTemplate()
      Returns:
      the template property value
    • setTemplate

      public void setTemplate(V1PodTemplateSpec template)
      Set the template property value
    • template

      public V1DeploymentSpec template(V1PodTemplateSpec template)
      Set template in a chainable fashion.
      Returns:
      The same instance of V1DeploymentSpec for chaining.
    • 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