Share via


PodTemplateSpecV1 Class

Definition

Represents the specification of a pod template in Kubernetes.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class PodTemplateSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type PodTemplateSpecV1 = class
Public NotInheritable Class PodTemplateSpecV1
Inheritance
PodTemplateSpecV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

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.

Constructors

PodTemplateSpecV1()

Properties

Metadata

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.

Spec

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.

Applies to