Skip to content
Docs Try Aspire

DeploymentSpecV1 Properties

Class Properties 8 members
Represents the specification of a Kubernetes Deployment resource.
MinReadySeconds Section titled MinReadySeconds nullable int?
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.
public int? MinReadySeconds { get; set; }
Paused Section titled Paused nullable bool?
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.
public bool? Paused { get; set; }
ProgressDeadlineSeconds Section titled ProgressDeadlineSeconds nullable int?
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.
public int? ProgressDeadlineSeconds { get; set; }
Replicas Section titled Replicas nullable int?
Gets or sets the desired number of pod replicas for this deployment. If null, the default value defined by the server will be used.
public int? Replicas { get; set; }
RevisionHistoryLimit Section titled RevisionHistoryLimit nullable int?
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.
public int? RevisionHistoryLimit { get; set; }
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.
public LabelSelectorV1 Selector { get; set; }
Gets or sets the deployment strategy which defines how to replace existing pods with new ones.
public DeploymentStrategyV1 Strategy { get; set; }
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.
public PodTemplateSpecV1 Template { get; set; }