Skip to content
DocsTry Aspire
DocsTry

KubernetesPersistentVolumeResource

Handle
📦 Aspire.Hosting.Kubernetes v13.5.1-preview.1.26420.4
interface KubernetesPersistentVolumeResource
extends IResource,
IResourceWithParent,
KubernetesEnvironmentResource]] {
withAccessMode(accessMode: PersistentVolumeAccessMode): KubernetesPersistentVolumeResource;
withCapacity(capacity: string): KubernetesPersistentVolumeResource;
withCapacityParam(capacity: ParameterResource): KubernetesPersistentVolumeResource;
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource;
withStorageClassParam(storageClassName: ParameterResource): KubernetesPersistentVolumeResource;
withVolumeAnnotation(
key: string,
value: string): KubernetesPersistentVolumeResource;
withVolumeAnnotationParam(
key: string,
value: ParameterResource): KubernetesPersistentVolumeResource;
}

Methods

methodwithAccessModebuilder
Adds an access mode to a persistent volume
withAccessMode(accessMode: PersistentVolumeAccessMode): KubernetesPersistentVolumeResource
accessModePersistentVolumeAccessMode
KubernetesPersistentVolumeResource
methodwithCapacitybuilder
Sets the requested storage capacity for a persistent volume
withCapacity(capacity: string): KubernetesPersistentVolumeResource
capacitystring
KubernetesPersistentVolumeResource
methodwithCapacityParambuilder
Sets a parameterized storage capacity for a persistent volume
withCapacityParam(capacity: ParameterResource): KubernetesPersistentVolumeResource
capacityParameterResource
KubernetesPersistentVolumeResource
methodwithStorageClassbuilder
Sets the storage class for a persistent volume
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource
storageClassNamestring
KubernetesPersistentVolumeResource
Sets a parameterized storage class for a persistent volume
withStorageClassParam(storageClassName: ParameterResource): KubernetesPersistentVolumeResource
storageClassNameParameterResource
KubernetesPersistentVolumeResource
Adds a Kubernetes metadata annotation to a persistent volume
withVolumeAnnotation(
key: string,
value: string): KubernetesPersistentVolumeResource
keystring
valuestring
KubernetesPersistentVolumeResource
Adds a parameterized Kubernetes metadata annotation to a persistent volume
withVolumeAnnotationParam(
key: string,
value: ParameterResource): KubernetesPersistentVolumeResource
keystring
valueParameterResource
KubernetesPersistentVolumeResource