Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.53 KB

File metadata and controls

35 lines (28 loc) · 2.53 KB

V1RBDPersistentVolumeSource

Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.

Properties

Name Type Description Notes
fs_type str fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd [optional]
image str image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
keyring str keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it [optional]
monitors List[str] monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
pool str pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it [optional]
read_only bool readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it [optional]
secret_ref V1SecretReference [optional]
user str user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it [optional]

Example

from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource

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

# convert the object into a dict
v1_rbd_persistent_volume_source_dict = v1_rbd_persistent_volume_source_instance.to_dict()
# create an instance of V1RBDPersistentVolumeSource from a dict
v1_rbd_persistent_volume_source_from_dict = V1RBDPersistentVolumeSource.from_dict(v1_rbd_persistent_volume_source_dict)

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