Skip to content

core.v1.iscsiVolumeSource

"Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."

Index

Fields

fn withChapAuthDiscovery

withChapAuthDiscovery(chapAuthDiscovery)

"whether support iSCSI Discovery CHAP authentication"

fn withChapAuthSession

withChapAuthSession(chapAuthSession)

"whether support iSCSI Session CHAP authentication"

fn withFsType

withFsType(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#iscsi"

fn withInitiatorName

withInitiatorName(initiatorName)

"Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."

fn withIqn

withIqn(iqn)

"Target iSCSI Qualified Name."

fn withIscsiInterface

withIscsiInterface(iscsiInterface)

"iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp)."

fn withLun

withLun(lun)

"iSCSI Target Lun number."

fn withPortals

withPortals(portals)

"iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."

fn withPortalsMixin

withPortalsMixin(portals)

"iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."

Note: This function appends passed data to existing values

fn withReadOnly

withReadOnly(readOnly)

"ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."

fn withTargetPortal

withTargetPortal(targetPortal)

"iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."

obj secretRef

"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."

fn secretRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"