# Deployment

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/DeploymentV1.cs)
- Inherits: [Workload](/reference/api/csharp/aspire.hosting.kubernetes/workload.md)

Represents a Kubernetes Deployment resource for managing application deployments in a cluster.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class Deployment
    : Aspire.Hosting.Kubernetes.Resources.Workload
{
    // ...
}
```

## 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](/reference/api/csharp/aspire.hosting.kubernetes/deployment/constructors.md#constructor) -- Represents a Kubernetes Deployment resource for managing application deployments in a cluster.

## Properties

- [PodTemplate](/reference/api/csharp/aspire.hosting.kubernetes/deployment/properties.md#podtemplate) : [PodTemplateSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/podtemplatespecv1.md) `get` -- Gets the pod template specification for the Deployment.
- [Spec](/reference/api/csharp/aspire.hosting.kubernetes/deployment/properties.md#spec) : [DeploymentSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/deploymentspecv1.md) `get; set` -- Gets or sets the specification of the Kubernetes Deployment resource.
