Class DeploymentSpec.Builder

  • Enclosing class:
    DeploymentSpec

    public static class DeploymentSpec.Builder
    extends java.lang.Object
    • 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 and will not be processed by the deployment controller.
        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. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
        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. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets".
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object