mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Minor fixups to iSCSI example.
- Put the link for setting up the target before initiator link. - Add a comment about removing the partition created in the linked tutorial. - Change the settings in the pod to resemble those you would if you follow the tutorial Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
This commit is contained in:
parent
0bee4aa76b
commit
ce40c4d7c2
@ -8,7 +8,7 @@ If you use Fedora 21 on Kubernetes node, then first install iSCSI initiator on t
|
|||||||
|
|
||||||
then edit */etc/iscsi/initiatorname.iscsi* and */etc/iscsi/iscsid.conf* to match your iSCSI target configuration.
|
then edit */etc/iscsi/initiatorname.iscsi* and */etc/iscsi/iscsid.conf* to match your iSCSI target configuration.
|
||||||
|
|
||||||
I mostly followed these [instructions](http://www.server-world.info/en/note?os=Fedora_21&p=iscsi&f=2) to setup iSCSI initiator and these [instructions](http://www.server-world.info/en/note?os=Fedora_21&p=iscsi) to setup iSCSI target.
|
I mostly followed these [instructions](http://www.server-world.info/en/note?os=Fedora_21&p=iscsi) to setup iSCSI target. and these [instructions](http://www.server-world.info/en/note?os=Fedora_21&p=iscsi&f=2) to setup iSCSI initiator.
|
||||||
|
|
||||||
**Setup B.** On Unbuntu 12.04 and Debian 7 nodes on GCE
|
**Setup B.** On Unbuntu 12.04 and Debian 7 nodes on GCE
|
||||||
|
|
||||||
@ -17,6 +17,16 @@ GCE does not provide preconfigured Fedora 21 image, so I set up the iSCSI target
|
|||||||
##Step 2. Creating the pod with iSCSI persistent storage
|
##Step 2. Creating the pod with iSCSI persistent storage
|
||||||
Once you have installed iSCSI initiator and new Kubernetes, you can create a pod based on my example *iscsi.json*. In the pod JSON, you need to provide *targetPortal* (the iSCSI target's **IP** address and *port* if not the default port 3260), target's *iqn*, *lun*, and the type of the filesystem that has been created on the lun, and *readOnly* boolean.
|
Once you have installed iSCSI initiator and new Kubernetes, you can create a pod based on my example *iscsi.json*. In the pod JSON, you need to provide *targetPortal* (the iSCSI target's **IP** address and *port* if not the default port 3260), target's *iqn*, *lun*, and the type of the filesystem that has been created on the lun, and *readOnly* boolean.
|
||||||
|
|
||||||
|
**Note:** If you have followed the instructions in the links above you
|
||||||
|
may have partitioned the device, the iSCSI volume plugin does not
|
||||||
|
currently support partitions so format the device as one partition.
|
||||||
|
Make sure you have the correct device name then run the following as
|
||||||
|
root to format it:
|
||||||
|
|
||||||
|
```console
|
||||||
|
mkfs.ext4 /dev/<name of device>
|
||||||
|
```
|
||||||
|
|
||||||
Once your pod is created, run it on the Kubernetes master:
|
Once your pod is created, run it on the Kubernetes master:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
{
|
{
|
||||||
"name": "iscsipd-ro",
|
"name": "iscsipd-ro",
|
||||||
"iscsi": {
|
"iscsi": {
|
||||||
"targetPortal": "10.16.154.81:3260",
|
"targetPortal": "127.0.0.1:3260",
|
||||||
"iqn": "iqn.2014-12.world.server:storage.target01",
|
"iqn": "iqn.2014-12.world.server:www.server.world",
|
||||||
"lun": 0,
|
"lun": 0,
|
||||||
"fsType": "ext4",
|
"fsType": "ext4",
|
||||||
"readOnly": true
|
"readOnly": true
|
||||||
@ -41,10 +41,10 @@
|
|||||||
{
|
{
|
||||||
"name": "iscsipd-rw",
|
"name": "iscsipd-rw",
|
||||||
"iscsi": {
|
"iscsi": {
|
||||||
"targetPortal": "10.16.154.81:3260",
|
"targetPortal": "127.0.0.1:3260",
|
||||||
"iqn": "iqn.2014-12.world.server:storage.target01",
|
"iqn": "iqn.2014-12.world.server:www.server.world",
|
||||||
"lun": 1,
|
"lun": 0,
|
||||||
"fsType": "xfs",
|
"fsType": "ext4",
|
||||||
"readOnly": false
|
"readOnly": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user