better doc and handling of portals
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
774b827b2e
commit
8765da65c4
|
|
@ -42,11 +42,13 @@ Predominantly 3 things are needed:
|
||||||
- deploy the driver into the cluster (`helm` chart provided with sample
|
- deploy the driver into the cluster (`helm` chart provided with sample
|
||||||
`values.yaml`)
|
`values.yaml`)
|
||||||
|
|
||||||
## Guides
|
## Community Guides
|
||||||
|
|
||||||
- https://jonathangazeley.com/2021/01/05/using-truenas-to-provide-persistent-storage-for-kubernetes/
|
- https://jonathangazeley.com/2021/01/05/using-truenas-to-provide-persistent-storage-for-kubernetes/
|
||||||
- https://gist.github.com/admun/4372899f20421a947b7544e5fc9f9117 (migrating
|
- https://gist.github.com/admun/4372899f20421a947b7544e5fc9f9117 (migrating
|
||||||
from `nfs-client-provisioner` to `democratic-csi`)
|
from `nfs-client-provisioner` to `democratic-csi`)
|
||||||
|
- https://gist.github.com/deefdragon/d58a4210622ff64088bd62a5d8a4e8cc
|
||||||
|
(migrating between storage classes using `velero`)
|
||||||
|
|
||||||
## Node Prep
|
## Node Prep
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,9 @@ zfs:
|
||||||
# 512, 1K, 2K, 4K, 8K, 16K, 64K, 128K default is 16K
|
# 512, 1K, 2K, 4K, 8K, 16K, 64K, 128K default is 16K
|
||||||
zvolBlocksize:
|
zvolBlocksize:
|
||||||
iscsi:
|
iscsi:
|
||||||
targetPortal: "server:3261"
|
targetPortal: "server[:port]"
|
||||||
targetPortals: []
|
# for multipath
|
||||||
|
targetPortals: [] # [ "server[:port]", "server[:port]", ... ]
|
||||||
# leave empty to omit usage of -I with iscsiadm
|
# leave empty to omit usage of -I with iscsiadm
|
||||||
interface:
|
interface:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,10 @@ iscsi:
|
||||||
# mutual CHAP
|
# mutual CHAP
|
||||||
#mutual_userid: "baz"
|
#mutual_userid: "baz"
|
||||||
#mutual_password: "bar"
|
#mutual_password: "bar"
|
||||||
targetPortal: "server address"
|
targetPortal: "server[:port]"
|
||||||
targetPortals: []
|
# for multipath
|
||||||
|
targetPortals: [] # [ "server[:port]", "server[:port]", ... ]
|
||||||
|
# leave empty to omit usage of -I with iscsiadm
|
||||||
interface: ""
|
interface: ""
|
||||||
|
|
||||||
# MUST ensure uniqueness
|
# MUST ensure uniqueness
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,9 @@ create /backstores/block/${iscsiName}
|
||||||
volume_context = {
|
volume_context = {
|
||||||
node_attach_driver: "iscsi",
|
node_attach_driver: "iscsi",
|
||||||
portal: this.options.iscsi.targetPortal,
|
portal: this.options.iscsi.targetPortal,
|
||||||
portals: this.options.iscsi.targetPortals.join(","),
|
portals: this.options.iscsi.targetPortals
|
||||||
|
? this.options.iscsi.targetPortals.join(",")
|
||||||
|
: "",
|
||||||
interface: this.options.iscsi.interface,
|
interface: this.options.iscsi.interface,
|
||||||
iqn: iqn,
|
iqn: iqn,
|
||||||
lun: 0,
|
lun: 0,
|
||||||
|
|
|
||||||
|
|
@ -1232,27 +1232,13 @@ class FreeNASDriver extends ControllerZfsSshBaseDriver {
|
||||||
[FREENAS_ISCSI_ASSETS_NAME_PROPERTY_NAME]: iscsiName,
|
[FREENAS_ISCSI_ASSETS_NAME_PROPERTY_NAME]: iscsiName,
|
||||||
});
|
});
|
||||||
|
|
||||||
// iscsiadm -m discovery -t st -p 172.21.26.81
|
|
||||||
// iscsiadm -m node -T iqn.2011-03.lan.bitness.istgt:test -p bitness.lan -l
|
|
||||||
|
|
||||||
// FROM driver config? no, node attachment should have everything required to remain independent
|
|
||||||
// portal
|
|
||||||
// portals
|
|
||||||
// interface
|
|
||||||
// chap discovery
|
|
||||||
// chap session
|
|
||||||
|
|
||||||
// FROM context
|
|
||||||
// iqn
|
|
||||||
// lun
|
|
||||||
|
|
||||||
volume_context = {
|
volume_context = {
|
||||||
node_attach_driver: "iscsi",
|
node_attach_driver: "iscsi",
|
||||||
portal: this.options.iscsi.targetPortal,
|
portal: this.options.iscsi.targetPortal,
|
||||||
portals: this.options.iscsi.targetPortals.join(","),
|
portals: this.options.iscsi.targetPortals
|
||||||
|
? this.options.iscsi.targetPortals.join(",")
|
||||||
|
: "",
|
||||||
interface: this.options.iscsi.interface || "",
|
interface: this.options.iscsi.interface || "",
|
||||||
//chapDiscoveryEnabled: this.options.iscsi.chapDiscoveryEnabled,
|
|
||||||
//chapSessionEnabled: this.options.iscsi.chapSessionEnabled,
|
|
||||||
iqn: iqn,
|
iqn: iqn,
|
||||||
lun: 0,
|
lun: 0,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue