Closed lknite closed 2 years ago
Hello @lknite I am not sure what's wrong with the democratic-csi-iscsi-controller in this case.
Usually, you would install CSI controller only in the host cluster, but not in the vcluster. And in vcluster you would create only the StorageClass resource, and if it differs from StorageClasses in the host, then you would need to enable storageclasses sync as described in the docs. Alternatively, if you want vcluster to have exactly the same StorageClasses as in the host cluster, you can enable the "legacy-storageclasses" sync as described in the docs.
Thank you. This is what I was looking for, the way things should work. At the moment I still need to use a flexvolume so I think I am stuck with using the legacy-storageclasses. Need to think my setup so I can align more with how things are intended to be used.
Thank you!
I found an updated smb driver so I no longer need to use the flexVolume. Taking another shot at setting this up the right way.
To avoid making any assumptions. If I'm hearing correctly, preferably, I would install my democractic iscsi csi on my host cluster, then setup my vcluster without any storageclass sync. Then on my host cluster do 'k get storageclass -o yaml > sc.yaml', then switch to my vcluster and 'k apply -f sc.yaml'. Yes?
And, if that doesn't work then can try those other options.
@lknite yes, that should work :).
Also, as far as I remember, if you are not syncing StorageClasses from virtual to host then the spec, labels, annotations, etc. of the StorageClasses in vcluster are not important, and are affectively ignored. A StorageClass just needs to exist with the same name as one in the host cluster.
Also, if you want to automate this, you can put your sc.yaml
into values.yaml
for vcluster. Docs - https://www.vcluster.com/docs/operator/init-manifests
Thank you for the tip to add the sc.yaml to the values.yaml, that's what I need to do. Thanks again!
What happened?
Truenas provides kubernetes storageclasses to interact with its product.
I've been using the iscsi storageClass without issue for several months now.
Recently I decided to start using vcluster. I spun up a couple vclusters and everything is working great. I added the clusters to my global configurations (argocd), which installs addons common to all my clusters, including the truenas storageclass.
In both vclusters I'm seeing the same:
logs show:
What did you expect to happen?
Expected democratic-csi-iscsi-controller to install to the two vclusters.
How can we reproduce it (as minimally and precisely as possible)?
It may be possible to spin up a minimal configuration using a helm chart:
values.yaml
Anything else we need to know?
Is there a trick to installing the storageClasses in a vcluster? I mean, I know the storageClass is already there on the root server so we don't really need to install the storageClass again. But, I was thinking I am supposed to install it again?
Host cluster Kubernetes version
Host cluster Kubernetes distribution
vcluster version
Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)
OS and Arch