PersistentVolumeClaimSpecV1.StorageClassName Property
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.
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.