StatefulSetSpecV1 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 the specification of a Kubernetes StatefulSet resource.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class StatefulSetSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type StatefulSetSpecV1 = class
Public NotInheritable Class StatefulSetSpecV1
- Inheritance
-
StatefulSetSpecV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
A Kubernetes StatefulSet is a workload API object used to manage stateful applications. StatefulSets manage the deployment and scaling of a set of pods, and provide guarantees about the ordering and uniqueness of these pods.
Constructors
StatefulSetSpecV1() |
Properties
MinReadySeconds |
Gets or sets the minimum number of seconds for which a newly created Pod should be ready without any containers crashing, for it to be considered available. This is used to ensure that the application is stable before being declared available in a StatefulSet deployment. If not specified, the default behavior verifies readiness immediately upon initial readiness. |
Ordinals |
Configures the ordinals for the StatefulSet in Kubernetes. |
PersistentVolumeClaimRetentionPolicy |
Describes the retention policy for PersistentVolumeClaims associated with a StatefulSet. |
PodManagementPolicy |
Defines the policy for managing the pods in a StatefulSet. This property determines how the pods are created, deleted, or updated within the StatefulSet. Typically, the pod management policy can take values such as "OrderedReady" or "Parallel". |
Replicas |
Gets or sets the desired number of replicas for the StatefulSet. This property represents the number of pod instances that should be maintained by the StatefulSet controller. If not specified, the default value is 1. A value of null indicates that the field is not set and the controller will fallback to the default behavior. |
RevisionHistoryLimit |
Defines the maximum number of revisions of a StatefulSet that will be retained in its history. When specified, old revisions exceeding this limit are deleted, allowing for storage optimization while retaining recent history revisions for rollback purposes. If not specified, a default value determined by the system may be used. |
Selector |
Gets or sets the label selector that is used to identify the set of pods targeted by the StatefulSet. |
ServiceName |
Gets or sets the name of the governing service for the StatefulSet. The service name is used to maintain the network identity of each pod and is required for controlling the storage and network identities of the pods in the StatefulSet. Each pod will inherit its DNS hostname from this service name. |
Template |
Specifies the pod template used by the StatefulSet for creating pods. |
UpdateStrategy |
Gets or sets the strategy used to update the stateful set's pods. This property specifies how updates to the StatefulSet should be performed. |
VolumeClaimTemplates |
Gets the list of PersistentVolumeClaim templates used to provision volumes for the StatefulSet. |