Watch Aspire live streamsDocsTry Aspire

withCapacity

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