# Storage class iscsi on rke cluster

**URL:** <https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224>\
**Category:** SUSE Rancher Prime\
**Created:** [August 28, 2020, 3:59pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224 "2020-08-28T15:59:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neni](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@neni](https://forums.suse.com/u/neni)\
**Post date:** [August 28, 2020, 3:59pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224/1 "2020-08-28T15:59:22Z")

</div>

I am trying to use a lun iscsi as a storage class in rke.  
But don’t find documentation, and what I find is deprecated.

> **[kubernetes-retired/external-storage](https://github.com/kubernetes-retired/external-storage/tree/master/iscsi/targetd)**
>
> \[EOL\] External storage plugins, provisioners, and helper libraries - kubernetes-retired/external-storage

Is it possible to use iscsi and have a storage class with rke?

Thanks

---

<div class="post-metadata">

**Author:** ![mattmattox](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mattmattox/32/5503_2.png) [@mattmattox](https://forums.suse.com/u/mattmattox)\
**Post date:** [August 28, 2020, 5:10pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224/2 "2020-08-28T17:10:38Z")

</div>

What kind of storage are you using? FreeNAS, NetApp, EMC, PureStorage?

---

<div class="post-metadata">

**Author:** ![neni](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@neni](https://forums.suse.com/u/neni)\
**Post date:** [August 28, 2020, 6:48pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224/3 "2020-08-28T18:48:35Z")

</div>

For testing I am connecting to Synology, I can also try with Dell EqualLogic PS Series.  
On the nodes (ubuntu 18.04) of the cluster I can initialize and mount the luns without problems.  
I am using rke 1.1.5 with v1.18.6-rancher1-2.

Thanks

---

<div class="post-metadata">

**Author:** ![neni](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@neni](https://forums.suse.com/u/neni)\
**Post date:** [August 31, 2020, 12:34pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224/4 "2020-08-31T12:34:16Z")

</div>

I solved it, the problem was the iscsid installed and running on the nodes (vm ubuntu 18.04).  
I stopped and disabled the service and I mount a LUN as a block device on pod.

```auto
---
apiVersion: v1
kind: Pod
metadata:
  name: iscsipd
spec:
  containers:
  - name: iscsipd-ro
    image: nginx:stable-alpine
    volumeMounts:
    - mountPath: "/usr/share/nginx/html/"
      name: iscsivol
  volumes:
  - name: iscsivol
    iscsi:
      targetPortal: 10.0.0.2
      iqn: iqn.2000-01.com.synology:DiskStation.Target-2.44bff22055
      lun: 1
      fsType: ext4
      readOnly: false

```

But now my question is:  
can I use a storage class and have the dynamic provisioning of PVC inside a LUN?

Thanks

---

<div class="post-metadata">

**Author:** ![colegatron](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/colegatron/32/9081_2.png) [@colegatron](https://forums.suse.com/u/colegatron)\
**Post date:** [June 7, 2022, 4:55pm UTC](https://forums.suse.com/t/storage-class-iscsi-on-rke-cluster/18224/5 "2022-06-07T16:55:31Z")

</div>

Hi Neni,

I am in the same point, having an Equalogic disks cabin, and connecting luns.  
But what I want is dynamic volumes provisioning over that luns.  
I was thinking to use something like Longhorn, but it only provisions volumes from the local disks, not from remote iscsi luns :-/

Did you managed to find a solution?
