# PodTemplateSpecV1 Properties

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

Represents the specification of a pod template in Kubernetes.

## Metadata

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

Gets or sets the metadata associated with the pod template specification. This includes standard object metadata such as name, namespace, labels, annotations, and other fields that describe the object.

```csharp
public ObjectMetaV1 Metadata { get; set; }
```

## Spec

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

Gets or sets the specification of the pod template. This property is used to define the desired characteristics and behavior of the pod, including its containers, volumes, scheduling constraints, and other configurations. The provided specification follows the structure defined by [PodSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/podspecv1.md).

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