Skip to content
Docs Try Aspire

PodTemplateSpecV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents the specification of a pod template in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PodTemplateSpecV1
{
// ...
}
A PodTemplateSpec object is primarily used in resource definitions such as ReplicaSets, StatefulSets, and ReplicationControllers to define the template for creating pods. It contains specification details for the pod, including metadata and the pod's desired state.
View all constructors
Metadataget; set
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.
Specget; set
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.
View all properties