Share via


PodTemplate.Template Property

Definition

Gets or sets the template for creating pods in Kubernetes.

[YamlDotNet.Serialization.YamlMember(Alias="template")]
public Aspire.Hosting.Kubernetes.Resources.PodTemplateSpecV1 Template { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="template")>]
member this.Template : Aspire.Hosting.Kubernetes.Resources.PodTemplateSpecV1 with get, set
Public Property Template As PodTemplateSpecV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

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.

Applies to