Watch Aspire live streamsDocsTry Aspire

KubernetesPersistentVolumeResource.withStorageClass

Method
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
interface KubernetesPersistentVolumeResource {
// ... omitted for brevity
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource;
}

Signature

methodwithStorageClassbuilder
Sets the storage class for a persistent volume
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource
storageClassNamestring
KubernetesPersistentVolumeResource

Defined on

This method is defined on the following type: