RBDVolumeSource

data class RBDVolumeSource(val fsType: String? = null, val image: String, val keyring: String? = null, val monitors: List<String>, val pool: String? = null, val readOnly: Boolean? = null, val secretRef: LocalObjectReference? = null, val user: String? = null)

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

Constructors

Link copied to clipboard
constructor(fsType: String? = null, image: String, keyring: String? = null, monitors: List<String>, pool: String? = null, readOnly: Boolean? = null, secretRef: LocalObjectReference? = null, user: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val fsType: String? = null

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

Link copied to clipboard

image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it

Link copied to clipboard
val keyring: String? = null

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

Link copied to clipboard

monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it

Link copied to clipboard
val pool: String? = null

pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it

Link copied to clipboard
val readOnly: Boolean? = null

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

Link copied to clipboard

secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it

Link copied to clipboard
val user: String? = null

user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it