Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.74 KB

File metadata and controls

29 lines (22 loc) · 1.74 KB

V1PersistentVolumeClaimVolumeSource

PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).

Properties

Name Type Description Notes
claim_name str claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
read_only bool readOnly Will force the ReadOnly setting in VolumeMounts. Default false. [optional]

Example

from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource

# TODO update the JSON string below
json = "{}"
# create an instance of V1PersistentVolumeClaimVolumeSource from a JSON string
v1_persistent_volume_claim_volume_source_instance = V1PersistentVolumeClaimVolumeSource.from_json(json)
# print the JSON string representation of the object
print(V1PersistentVolumeClaimVolumeSource.to_json())

# convert the object into a dict
v1_persistent_volume_claim_volume_source_dict = v1_persistent_volume_claim_volume_source_instance.to_dict()
# create an instance of V1PersistentVolumeClaimVolumeSource from a dict
v1_persistent_volume_claim_volume_source_from_dict = V1PersistentVolumeClaimVolumeSource.from_dict(v1_persistent_volume_claim_volume_source_dict)

[Back to Model list] [Back to API list] [Back to README]