DeploymentSpecV1 Class

Definition

Represents the specification of a Kubernetes Deployment resource.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class DeploymentSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type DeploymentSpecV1 = class
Public NotInheritable Class DeploymentSpecV1
Inheritance
DeploymentSpecV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

DeploymentSpecV1()

Properties

MinReadySeconds

Specifies the minimum number of seconds for which a newly created pod should be ready without any of its containers crashing, for it to be considered available. This setting can affect the deployment's overall readiness status, ensuring a buffer period before marking pods as ready for serving traffic. Defaults to 0, indicating immediate readiness checking after the pod enters the Ready state.

Paused

Indicates whether the deployment is paused. When set to true, the deployment will not trigger any new rollouts or updates to the replicas until the value is set back to false.

ProgressDeadlineSeconds

Specifies the maximum duration, in seconds, that a deployment process should run without progressing before it is considered failed. If the deployment does not make progress during this time, it will be marked as failed. This helps to enforce deployment stability and avoid long-running deployments that do not complete.

Replicas

Gets or sets the desired number of pod replicas for this deployment. If null, the default value defined by the server will be used.

RevisionHistoryLimit

Specifies the number of old ReplicaSets to retain for a Deployment. When set, this field controls the maximum number of revisions kept in the history to allow rollback. If not specified, a default value will be used by the system.

Selector

Gets or sets the label selector for the deployment. The label selector defines how to identify the set of resources (such as pods) to which the deployment applies. It is used to match the desired pods against a label-based query.

Strategy

Gets or sets the deployment strategy which defines how to replace existing pods with new ones.

Template

Gets or sets the template for the deployment, which defines the desired state of the Pod, including metadata and specifications. This property allows for configuring the properties that Pods created from this template will inherit.

Applies to