PodTemplate Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a PodTemplate resource in Kubernetes.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class PodTemplate : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type PodTemplate = class
inherit BaseKubernetesResource
Public NotInheritable Class PodTemplate
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
A PodTemplate is a basic unit in Kubernetes that holds Pod specification templates. It allows for defining reusable configurations for Pods, typically used in combination with higher-level controllers like Deployments. The template field inside this resource specifies the desired Pod specification to use. This class derives from the BaseKubernetesResource and supports API version "v1" with the resource kind "PodTemplate". Properties defined in this class allow interaction with the YAML configuration for Kubernetes PodTemplates.
Constructors
PodTemplate() |
Represents a PodTemplate resource in Kubernetes. |
Properties
ApiVersion |
Gets or sets the API version for the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Kind |
Gets or sets the kind of the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Metadata |
Gets or sets the metadata for the Kubernetes resource. (Inherited from BaseKubernetesResource) |
Template |
Gets or sets the template for creating pods in Kubernetes. |