Class V1RBDVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1RBDVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RBDVolumeSource extends Object
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1RBDVolumeSource

      public V1RBDVolumeSource()
  • Method Details

    • fsType

      public V1RBDVolumeSource fsType(String fsType)
    • getFsType

      @Nullable 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
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • image

      public V1RBDVolumeSource image(String image)
    • getImage

      public String getImage()
      image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      image
    • setImage

      public void setImage(String image)
    • keyring

      public V1RBDVolumeSource keyring(String keyring)
    • getKeyring

      @Nullable 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
      Returns:
      keyring
    • setKeyring

      public void setKeyring(String keyring)
    • monitors

      public V1RBDVolumeSource monitors(List<String> monitors)
    • addMonitorsItem

      public V1RBDVolumeSource addMonitorsItem(String monitorsItem)
    • 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
      Returns:
      monitors
    • setMonitors

      public void setMonitors(List<String> monitors)
    • pool

      public V1RBDVolumeSource pool(String pool)
    • getPool

      @Nullable 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
      Returns:
      pool
    • setPool

      public void setPool(String pool)
    • readOnly

      public V1RBDVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable 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
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef)
    • getSecretRef

      @Nullable public V1LocalObjectReference getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(V1LocalObjectReference secretRef)
    • user

      public V1RBDVolumeSource user(String user)
    • getUser

      @Nullable 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
      Returns:
      user
    • setUser

      public void setUser(String user)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object