withKubernetesPersistentVolumeMount
Method
interface ContainerResource { // ... omitted for brevity withKubernetesPersistentVolumeMount( volume: KubernetesPersistentVolumeResource, mountPath: string, isReadOnly?: boolean, env?: string): IComputeResource;}Signature
method
withKubernetesPersistentVolumeMount builderBinds a workload to a Kubernetes persistent volume and mounts it at a path
withKubernetesPersistentVolumeMount( volume: KubernetesPersistentVolumeResource, mountPath: string, isReadOnly?: boolean, env?: string): IComputeResourceParameters
volumeKubernetesPersistentVolumeResource The persistent volume resource to bind to.mountPath stringThe path inside the deployed container where the volume is mounted.isReadOnly booleanoptional= FalseWhen true, mounts the deployed volume read-only.envstringoptionalAn optional environment variable that receives the effective storage path.Returns
IComputeResource Applies to
This method applies to the following types: