struct Kubernetes::DeploymentSpec

Overview

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

Included Modules

Defined in:

generated/models/io_k8s_api_apps_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

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

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def 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)


def 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)


def paused : Bool | Nil #

Indicates that the deployment is paused.


def paused=(paused : Bool | Nil) #

Indicates that the deployment is paused.


def 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.


def 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.


def replicas : Int32 | Nil #

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


def replicas=(replicas : Int32 | Nil) #

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


def 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.


def 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.


def 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.


def 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.


def strategy : DeploymentStrategy | Nil #

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


def strategy=(strategy : DeploymentStrategy | Nil) #

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


def template : PodTemplateSpec | Nil #

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


def template=(template : PodTemplateSpec | Nil) #

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