Merge pull request #10095 from swagiaal/iscsi-example
Minor fixups to iSCSI example.
This commit is contained in:
		
						commit
						d548c1bd0e
					
				|  | @ -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. | ||||
| 
 | ||||
| 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 | ||||
| 
 | ||||
|  | @ -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 | ||||
| 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: | ||||
| 
 | ||||
| ```console | ||||
|  |  | |||
|  | @ -31,8 +31,8 @@ | |||
|             { | ||||
|                 "name": "iscsipd-ro", | ||||
|                 "iscsi": { | ||||
|                     "targetPortal": "10.16.154.81:3260", | ||||
|                     "iqn": "iqn.2014-12.world.server:storage.target01", | ||||
|                     "targetPortal": "127.0.0.1:3260", | ||||
|                     "iqn": "iqn.2014-12.world.server:www.server.world", | ||||
|                     "lun": 0, | ||||
|                     "fsType": "ext4", | ||||
|                     "readOnly": true | ||||
|  | @ -41,10 +41,10 @@ | |||
|             { | ||||
|                 "name": "iscsipd-rw", | ||||
|                 "iscsi": { | ||||
|                     "targetPortal": "10.16.154.81:3260", | ||||
|                     "iqn": "iqn.2014-12.world.server:storage.target01", | ||||
|                     "lun": 1, | ||||
|                     "fsType": "xfs", | ||||
|                     "targetPortal": "127.0.0.1:3260", | ||||
|                     "iqn": "iqn.2014-12.world.server:www.server.world", | ||||
|                     "lun": 0, | ||||
|                     "fsType": "ext4", | ||||
|                     "readOnly": false | ||||
|                 } | ||||
|             } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue