Package io.fabric8.kubernetes.api.model
Class RBDPersistentVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.RBDPersistentVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RBDPersistentVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RBDPersistentVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<RBDPersistentVolumeSourceBuilder>, KubernetesResource
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RBDPersistentVolumeSource()
No args constructor for use in serializationRBDPersistentVolumeSource(String fsType, String image, String keyring, List<String> monitors, String pool, Boolean readOnly, SecretReference secretRef, String user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RBDPersistentVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getFsType()
fsType is the filesystem type of the volume that you want to mount.String
getImage()
image is the rados image name.String
getKeyring()
keyring is the path to key ring for RBDUser.List<String>
getMonitors()
monitors is a collection of Ceph monitors.String
getPool()
pool is the rados pool name.Boolean
getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts.SecretReference
getSecretRef()
Represents a Rados Block Device mount that lasts the lifetime of a pod.String
getUser()
user is the rados user name.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setFsType(String fsType)
fsType is the filesystem type of the volume that you want to mount.void
setImage(String image)
image is the rados image name.void
setKeyring(String keyring)
keyring is the path to key ring for RBDUser.void
setMonitors(List<String> monitors)
monitors is a collection of Ceph monitors.void
setPool(String pool)
pool is the rados pool name.void
setReadOnly(Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts.void
setSecretRef(SecretReference secretRef)
Represents a Rados Block Device mount that lasts the lifetime of a pod.void
setUser(String user)
user is the rados user name.RBDPersistentVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getFsType
public String getFsType()
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
-
setFsType
public void setFsType(String fsType)
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
-
getImage
public String getImage()
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setImage
public void setImage(String image)
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getKeyring
public String getKeyring()
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
-
setKeyring
public void setKeyring(String keyring)
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
-
getMonitors
public List<String> getMonitors()
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setMonitors
public void setMonitors(List<String> monitors)
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getPool
public String getPool()
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setPool
public void setPool(String pool)
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
getReadOnly
public Boolean getReadOnly()
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
-
setReadOnly
public void setReadOnly(Boolean readOnly)
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
-
getSecretRef
public SecretReference getSecretRef()
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
-
setSecretRef
public void setSecretRef(SecretReference secretRef)
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
-
getUser
public String getUser()
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
setUser
public void setUser(String user)
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
-
edit
public RBDPersistentVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<RBDPersistentVolumeSourceBuilder>
-
toBuilder
public RBDPersistentVolumeSourceBuilder toBuilder()
-
-