Watch Aspire live streamsDocsTry Aspire

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

Applies to

This method applies to the following types: