addPersistentVolume
Method
interface KubernetesEnvironmentResource { // ... omitted for brevity addPersistentVolume(name: string): KubernetesPersistentVolumeResource;}Signature
method
addPersistentVolume builderAdds a Kubernetes PersistentVolumeClaim resource
addPersistentVolume(name: string): KubernetesPersistentVolumeResourceParameters
namestringThe name of the persistent volume resource. Used as the generated PVC's `metadata.name` after lower-casing. To bind a workload using the name-match overload of `WithPersistentVolume``1`, add a `WithVolume("name", "/path")` on the workload using the same `name`.Returns
KubernetesPersistentVolumeResource Applies to
This method applies to the following types: