Skip to content
DocsTry Aspire
DocsTry

KubernetesPersistentVolumeResource.withStorageClass

Method
📦 Aspire.Hosting.Kubernetes v13.5.1-preview.1.26420.4
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: