kubernetes iscsi 應用
1. node info
- 主機資訊
- proxy server(iscsi server): 192.168.122.60
- master1: 192.168.122.61
- master2: 192.168.122.62
- master3: 192.168.122.63
- worker1: 192.168.122.64
- worker2: 192.168.122.65
2. iscsi server setup
follow this:
- Configure iSCSI Target (targetcli)
- Configure iSCSI Target (tgt)
targetcli

tgt conf.d sample
3. worker node setup
follow this: Configure iSCSI Initiator
/etc/iscsi/initiatorname.iscsi
/etc/iscsi/iscsid.conf
4. chap info and secret
create iscsi CHAP info to dir
5. persistentVolume define
pv.yaml
6. label pv
7. persistentVolumeClaim define
pvc.yaml
8. Pods mount same iscsi target
iscsi pod 1
iscb pod 2
check mount point and delete file
9. notices
- consider pod design, use iscsi volume readonly for other container, do not RW volume at same time!
- do not mount iscsi for other pod at same time, we can do it, but don't.
10. reference
- CHAP sample
- kubernetes docs