Share via


PersistentVolumeClaimSpecV1.StorageClassName Property

Definition

Gets or sets the name of the storage class required by the PersistentVolumeClaim.

[YamlDotNet.Serialization.YamlMember(Alias="storageClassName")]
public string StorageClassName { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="storageClassName")>]
member this.StorageClassName : string with get, set
Public Property StorageClassName As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The StorageClassName specifies the name of the StorageClass that governs dynamic volume provisioning or volume binding for the associated PersistentVolumeClaim. Setting this property allows the claim to specifically request a volume of a particular storage class. It should match the name of an existing StorageClass in the Kubernetes cluster. If set to null or empty, it indicates that the default StorageClass configured in the cluster will be used. If no default StorageClass is configured and this value is not set, the claim cannot be dynamically provisioned.

Applies to