Skip to content
DocsTry Aspire
DocsTry

withCapacity

Method
📦 Aspire.Hosting.Kubernetes v13.5.1-preview.1.26420.4
interface KubernetesPersistentVolumeResource {
// ... omitted for brevity
withCapacity(capacity: string): KubernetesPersistentVolumeResource;
}

Signature

methodwithCapacitybuilder
Sets the requested storage capacity for a persistent volume
withCapacity(capacity: string): KubernetesPersistentVolumeResource
capacitystring
KubernetesPersistentVolumeResource

Applies to

This method applies to the following types: