Deployment Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Kubernetes Deployment resource for managing application deployments in a cluster.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Deployment : Aspire.Hosting.Kubernetes.Resources.Workload[<YamlDotNet.Serialization.YamlSerializable>]
type Deployment = class
    inherit WorkloadPublic NotInheritable Class Deployment
Inherits Workload- Inheritance
- Attributes
- 
			YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
The Deployment class is a sealed class derived from the BaseKubernetesResource. It defines the desired state and behavior of a deployment within a Kubernetes cluster, including specifications such as the number of replicas, update strategy, and pod templates. It uses the "apps/v1" API version and the resource kind "Deployment".
Constructors
| Deployment() | Represents a Kubernetes Deployment resource for managing application deployments in a cluster. | 
Properties
| ApiVersion | Gets or sets the API version for the Kubernetes resource.(Inherited from BaseKubernetesObject) | 
| Kind | Gets or sets the kind of the Kubernetes resource.(Inherited from BaseKubernetesObject) | 
| Metadata | Gets or sets the metadata for the Kubernetes resource.(Inherited from BaseKubernetesResource) | 
| PodTemplate | Gets the pod template specification for the Deployment. | 
| Spec | Gets or sets the specification of the Kubernetes Deployment resource. |