struct
Kubernetes::DeploymentSpec
- Kubernetes::DeploymentSpec
- Struct
- Value
- Object
Overview
DeploymentSpec is the specification of the desired behavior of the Deployment.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_apps_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#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.
-
#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.
-
#paused : Bool | Nil
Indicates that the deployment is paused.
-
#paused=(paused : Bool | Nil)
Indicates that the deployment is paused.
-
#progress_deadline_seconds : Int32 | Nil
The maximum time in seconds for a deployment to make progress before it is considered to be failed.
-
#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.
-
#replicas : Int32 | Nil
Number of desired pods.
-
#replicas=(replicas : Int32 | Nil)
Number of desired pods.
-
#revision_history_limit : Int32 | Nil
The number of old ReplicaSets to retain to allow rollback.
-
#revision_history_limit=(revision_history_limit : Int32 | Nil)
The number of old ReplicaSets to retain to allow rollback.
-
#selector : LabelSelector | Nil
Label selector for pods.
-
#selector=(selector : LabelSelector | Nil)
Label selector for pods.
-
#strategy : DeploymentStrategy | Nil
The deployment strategy to use to replace existing pods with new ones.
-
#strategy=(strategy : DeploymentStrategy | Nil)
The deployment strategy to use to replace existing pods with new ones.
-
#template : PodTemplateSpec | Nil
Template describes the pods that will be created.
-
#template=(template : PodTemplateSpec | Nil)
Template describes the pods that will be created.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
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)
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.
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.
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.
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.
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.
The deployment strategy to use to replace existing pods with new ones.
The deployment strategy to use to replace existing pods with new ones.
Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".
Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".