StatefulSetSpecV1
Class sealed net10.0
Represents the specification of a Kubernetes StatefulSet resource.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class StatefulSetSpecV1{ // ...} 12 members
Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties11
Section titled PropertiesMinReadySecondsget; setint? 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.
Ordinalsget; set Configures the ordinals for the StatefulSet in Kubernetes.
PersistentVolumeClaimRetentionPolicyget; set Describes the retention policy for PersistentVolumeClaims associated with a StatefulSet.
PodManagementPolicyget; setstring? 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".
Replicasget; setint? 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.
RevisionHistoryLimitget; setint? 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.
Selectorget; set Gets or sets the label selector that is used to identify the set of pods targeted by the StatefulSet.
ServiceNameget; setstring 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.
Templateget; set Specifies the pod template used by the StatefulSet for creating pods.
UpdateStrategyget; set Gets or sets the strategy used to update the stateful set's pods. This property specifies how updates to the StatefulSet should be performed.
VolumeClaimTemplatesget Gets the list of PersistentVolumeClaim templates used to provision volumes for the StatefulSet.