<p>I was to setup the 4 node minio cluster in distributed mode using direct-csi driver. Based on the document I try to create the direct-csi deployment, but is failing with below error message.  I am using Kubernetes v1.17.0 cluster.</p>
<p><a href="https://github.com/minio/direct-csi" rel="nofollow noreferrer">https://github.com/minio/direct-csi</a></p>
<pre><code># DIRECT_CSI_DRIVES=data{1...4} DIRECT_CSI_DRIVES_DIR=/mnt kubectl apply -k github.com/minio/direct-csi
namespace/direct-csi unchanged
storageclass.storage.k8s.io/direct.csi.min.io unchanged
serviceaccount/direct-csi-min-io unchanged
clusterrole.rbac.authorization.k8s.io/direct-csi-min-io unchanged
clusterrolebinding.rbac.authorization.k8s.io/direct-csi-min-io unchanged
configmap/direct-csi-config unchanged
secret/direct-csi-min-io unchanged
service/direct-csi-min-io unchanged
deployment.apps/direct-csi-controller-min-io unchanged
daemonset.apps/direct-csi-min-io unchanged
error: unable to recognize &quot;github.com/minio/direct-csi&quot;: no matches for kind &quot;CSIDriver&quot; in version &quot;storage.k8s.io/v1&quot;
</code></pre>
<p>How to resolve this error message?</p>
<p>[update]
to check the CIS version:</p>
<pre><code>kubectl explain CSIDriver
KIND:     CSIDriver
VERSION:  storage.k8s.io/v1beta1
</code></pre>
<p>Thanks
SR</p>

sfgroups
<p>Since you are using K8s 1.17 the <code>CSIDriver</code> object <a href="https://kubernetes-csi.github.io/docs/csi-driver-object.html" rel="noreferrer">became GA in 1.18</a>. So <code>storage.k8s.io/v1</code> will not work. If you look at <a href="https://kubernetes-csi.github.io/docs/csi-driver-object.html#changes-from-alpha-to-beta" rel="noreferrer">the docs</a> you can see that you have to use <code>storage.k8s.io/v1beta1</code> for Beta. So you can fork the repo and make that modification or you can do it locally.</p>
<p>✌️</p>
