Class RBDVolumeSource.Builder

  • Enclosing class:
    RBDVolumeSource

    public static class RBDVolumeSource.Builder
    extends java.lang.Object
    • Method Detail

      • fsType

        public RBDVolumeSource.Builder fsType​(java.lang.String fsType)
        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:
        this.
      • image

        public RBDVolumeSource.Builder image​(@NonNull
                                             @NonNull java.lang.String image)
        The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
        Returns:
        this.
      • keyring

        public RBDVolumeSource.Builder keyring​(java.lang.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
        Returns:
        this.
      • monitors

        public RBDVolumeSource.Builder monitors​(java.util.Collection<? extends java.lang.String> monitors)
      • pool

        public RBDVolumeSource.Builder pool​(java.lang.String pool)
        The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
        Returns:
        this.
      • readOnly

        public RBDVolumeSource.Builder readOnly​(java.lang.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
        Returns:
        this.
      • user

        public RBDVolumeSource.Builder user​(java.lang.String user)
        The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object