Starwind vSan and iscsi storageclass

Tape drive and auto-loader redirector over iSCSI

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
corabrooks
Posts: 1
Joined: Thu Dec 12, 2024 7:40 am

Thu Dec 12, 2024 7:42 am

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.
Last edited by corabrooks on Sat Dec 14, 2024 6:49 am, edited 1 time in total.
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Thu Dec 12, 2024 8:43 am

Greetings,

Welcome to StarWind Forum!
I do not think the CSI driver is intended to use VSAN. You still can use NFS.
Thatentry
Posts: 2
Joined: Mon Jun 09, 2025 9:30 am

Mon Jun 09, 2025 9:33 am

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.
Last edited by Thatentry on Thu Jun 12, 2025 9:20 am, edited 1 time in total.
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Mon Jun 09, 2025 9:45 am

Thanks for sharing your experience!
Thatentry
Posts: 2
Joined: Mon Jun 09, 2025 9:30 am

Thu Jun 12, 2025 9:20 am

No problem!!
Post Reply