79225927

Date: 2024-11-26 08:50:27
Score: 0.5
Natty:
Report link

It was exactly as easy as i already have commented. I just needed to login on the Hosts and use: iscsiadm -m discovery -t st -p . Than i had to put in the IQN i get into the PV i wanted to create like this with multiple targets and the LUN from the Storage:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: iscsi-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  iscsi:
    targetPortal: 10.0.0.1:3260
    portals: ['10.0.2.16:3260', '10.0.2.17:3260', '10.0.2.18:3260'] 
    iqn: iqn.2016-04.test.com:storage.target00
    lun: 0
    fsType: ext4
    readOnly: false
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Working Lukas