# Deployment Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [Deployment](/reference/api/csharp/aspire.hosting.kubernetes/deployment.md)
- Kind: `Properties`
- Members: `2`

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

## PodTemplate

- Name: `PodTemplate`
- Modifiers: `override` `get`
- Returns: [PodTemplateSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/podtemplatespecv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/DeploymentV1.cs#L34)

Gets the pod template specification for the Deployment.

```csharp
public override PodTemplateSpecV1 PodTemplate { get; }
```

## Spec

- Name: `Spec`
- Modifiers: `get; set`
- Returns: [DeploymentSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/deploymentspecv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/DeploymentV1.cs)

Gets or sets the specification of the Kubernetes Deployment resource.

```csharp
public DeploymentSpecV1 Spec { get; set; }
```

## Remarks

This property defines the detailed configuration and desired state of the Deployment resource. It includes settings such as the desired number of replicas, update strategies, pod templates, label selectors, and other deployment-related configurations.
