struct

Kubernetes::DeploymentSpec

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

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

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

min_ready_seconds

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)

Source
min_ready_seconds=(min_ready_seconds : Int32 | Nil)

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)

Source
paused

Indicates that the deployment is paused.

Source
paused=(paused : Bool | Nil)

Indicates that the deployment is paused.

Source
progress_deadline_seconds

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.

Source
progress_deadline_seconds=(progress_deadline_seconds : Int32 | Nil)

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.

Source
replicas

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

Source
replicas=(replicas : Int32 | Nil)

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

Source
revision_history_limit

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.

Source
revision_history_limit=(revision_history_limit : Int32 | Nil)

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.

Source
selector

Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.

Source
selector=(selector : LabelSelector | Nil)

Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.

Source
strategy

The deployment strategy to use to replace existing pods with new ones.

Source
strategy=(strategy : DeploymentStrategy | Nil)

The deployment strategy to use to replace existing pods with new ones.

Source
template

Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".

Source
template=(template : PodTemplateSpec | Nil)

Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source