Share via


StatefulSet Constructor

Definition

Represents a Kubernetes StatefulSet resource in the "apps/v1" API group.

public StatefulSet();
Public Sub New ()

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.

Applies to