StatefulSet 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 Kubernetes StatefulSet resource in the "apps/v1" API group.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class StatefulSet : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type StatefulSet = class
inherit BaseKubernetesResource
Public NotInheritable Class StatefulSet
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Examples
The StatefulSet class can be used to define the desired state of a set of Pods and associated resources in a Kubernetes cluster. The resource is serialized to YAML for use with Kubernetes manifests.
Remarks
A StatefulSet manages the deployment and scaling of a set of Pods, while ensuring that their order and state are preserved. StatefulSets are typically used for applications that require stable network identities and persistent storage, such as databases or distributed systems. This class provides an abstraction for defining the configuration of a StatefulSet object in YAML, aligning with the Kubernetes specification.
Constructors
StatefulSet() |
Represents a Kubernetes StatefulSet resource in the "apps/v1" API group. |
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) |
Spec |
Gets or sets the specification of the Kubernetes StatefulSet resource. |