Page 1 of 1

Starwind vSan and iscsi storageclass

Posted: Thu Dec 12, 2024 7:42 am
by corabrooks
So I installed a single node starwind vSan for my homelab and configured iscsi.

The next step is actually annoying: create a storage class in kubernetes which contains the connection settings

I can create a PVC with the connection settings and it works fine but I do not want this, I want this to be done by a storage class. I searched a lot on Google but did not find a solution. Is there a CSI driver that works this way? I know NFS is easier to setup but for learning purposes I want to use iscsi.

Re: Starwind vSan and iscsi storageclass

Posted: Thu Dec 12, 2024 8:43 am
by yaroslav (staff)
Greetings,

Welcome to StarWind Forum!
I do not think the CSI driver is intended to use VSAN. You still can use NFS.

Re: Starwind vSan and iscsi storageclass

Posted: Mon Jun 09, 2025 9:33 am
by Thatentry
corabrooks wrote:
Thu Dec 12, 2024 7:42 am
crazy flips 3d
So I installed a single node starwind vSan for my homelab and configured iscsi.

The next step is actually annoying: create a storage class in kubernetes which contains the connection settings

I can create a PVC with the connection settings and it works fine but I do not want this, I want this to be done by a storage class. I searched a lot on Google but did not find a solution. Is there a CSI driver that works this way? I know NFS is easier to setup but for learning purposes I want to use iscsi.
If you want to use iSCSI with Kubernetes, you should use a CSI driver like OpenEBS (cStor). Kubernetes does not support dynamic provisioning iSCSI directly unless you have a dedicated driver. StarWind does not have an official CSI yet, so you can consider NFS or write your own wrapper if you need automation.

Re: Starwind vSan and iscsi storageclass

Posted: Mon Jun 09, 2025 9:45 am
by yaroslav (staff)
Thanks for sharing your experience!

Re: Starwind vSan and iscsi storageclass

Posted: Thu Jun 12, 2025 9:20 am
by Thatentry
No problem!!