# PodTemplate Properties

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

Represents a PodTemplate resource in Kubernetes.

## Template

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

Gets or sets the template for creating pods in Kubernetes.

```csharp
public PodTemplateSpecV1 Template { get; set; }
```

## Remarks

The Template property represents a PodTemplateSpec object that defines the metadata and specification for the pod instances created from the pod template. It is used in higher-level Kubernetes constructs such as Deployments, ReplicaSets, or StatefulSets to define the desired state of pods.
