minio direct-csi 在版本 "storage.k8s.io/v1" 中没有匹配类型 "CSIDriver"
minio direct-csi no matches for kind "CSIDriver" in version "storage.k8s.io/v1"
我要使用 direct-csi 驱动程序以分布式模式设置 4 节点 minio 集群。根据文档,我尝试创建 direct-csi 部署,但失败并显示以下错误消息。我正在使用 Kubernetes v1.17.0 集群。
https://github.com/minio/direct-csi
# 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 "github.com/minio/direct-csi": no matches for kind "CSIDriver" in version "storage.k8s.io/v1"
如何解决此错误消息?
[更新]
查看 CIS 版本:
kubectl explain CSIDriver
KIND: CSIDriver
VERSION: storage.k8s.io/v1beta1
谢谢
SR
由于您使用的是 K8s 1.17 CSIDriver
对象 became GA in 1.18. So storage.k8s.io/v1
will not work. If you look at the docs,您可以看到必须使用 storage.k8s.io/v1beta1
进行 Beta 测试。所以你可以分叉回购并进行修改,或者你可以在本地进行。
✌️
我要使用 direct-csi 驱动程序以分布式模式设置 4 节点 minio 集群。根据文档,我尝试创建 direct-csi 部署,但失败并显示以下错误消息。我正在使用 Kubernetes v1.17.0 集群。
https://github.com/minio/direct-csi
# 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 "github.com/minio/direct-csi": no matches for kind "CSIDriver" in version "storage.k8s.io/v1"
如何解决此错误消息?
[更新] 查看 CIS 版本:
kubectl explain CSIDriver
KIND: CSIDriver
VERSION: storage.k8s.io/v1beta1
谢谢 SR
由于您使用的是 K8s 1.17 CSIDriver
对象 became GA in 1.18. So storage.k8s.io/v1
will not work. If you look at the docs,您可以看到必须使用 storage.k8s.io/v1beta1
进行 Beta 测试。所以你可以分叉回购并进行修改,或者你可以在本地进行。
✌️