DeploymentSpec

case class DeploymentSpec(minReadySeconds: Optional[Int], paused: Optional[Boolean], progressDeadlineSeconds: Optional[Int], replicas: Optional[Int], revisionHistoryLimit: Optional[Int], selector: LabelSelector, strategy: Optional[DeploymentStrategy], template: PodTemplateSpec)

DeploymentSpec is the specification of the desired behavior of the Deployment.

Value Params
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)

paused

Indicates that the deployment is paused.

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. Defaults to 600s.

replicas

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

revisionHistoryLimit

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.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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)

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)

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getPaused: IO[K8sFailure, Boolean]

Indicates that the deployment is paused.

Indicates that the deployment is paused.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

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.

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.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getReplicas: IO[K8sFailure, Int]

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

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.

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.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Gets selector.

Gets selector.

This effect always succeeds, it is safe to use the field selector directly.

Gets strategy.

Gets strategy.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Gets template.

Gets template.

This effect always succeeds, it is safe to use the field template directly.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product