kubernetes - 在 Kubernetes 集群上部署 CSI Sidecar 和 CSI 驱动程序
问题描述
我是在 Kubernetes 中使用 CSI 的新手。我正在尝试将 CSI 驱动程序和边车部署到现有的 Kubernetes 集群。我正在关注此链接 https://github.com/kubernetes-csi/csi-driver-host-path
执行 deploy.sh 后出现的错误是
> $ ./deploy.sh
applying RBAC rules
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-provisioner/v1.6.0/deploy/kubernetes/rbac.yaml
serviceaccount/csi-provisioner created
clusterrole.rbac.authorization.k8s.io/external-provisioner-runner created
clusterrolebinding.rbac.authorization.k8s.io/csi-provisioner-role created
role.rbac.authorization.k8s.io/external-provisioner-cfg created
rolebinding.rbac.authorization.k8s.io/csi-provisioner-role-cfg created
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-attacher/v3.0.0-rc1/deploy/kubernetes/rbac.yaml
serviceaccount/csi-attacher created
clusterrole.rbac.authorization.k8s.io/external-attacher-runner created
clusterrolebinding.rbac.authorization.k8s.io/csi-attacher-role created
role.rbac.authorization.k8s.io/external-attacher-cfg created
rolebinding.rbac.authorization.k8s.io/csi-attacher-role-cfg created
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.0/deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml
serviceaccount/csi-snapshotter created
clusterrole.rbac.authorization.k8s.io/external-snapshotter-runner created
clusterrolebinding.rbac.authorization.k8s.io/csi-snapshotter-role created
role.rbac.authorization.k8s.io/external-snapshotter-leaderelection created
rolebinding.rbac.authorization.k8s.io/external-snapshotter-leaderelection created
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-resizer/v0.5.0/deploy/kubernetes/rbac.yaml
serviceaccount/csi-resizer created
clusterrole.rbac.authorization.k8s.io/external-resizer-runner created
clusterrolebinding.rbac.authorization.k8s.io/csi-resizer-role created
role.rbac.authorization.k8s.io/external-resizer-cfg created
rolebinding.rbac.authorization.k8s.io/csi-resizer-role-cfg created
deploying hostpath components
./hostpath/csi-hostpath-attacher.yaml
using image: quay.io/k8scsi/csi-attacher:v3.0.0-rc1
service/csi-hostpath-attacher created
statefulset.apps/csi-hostpath-attacher created
./hostpath/csi-hostpath-driverinfo.yaml
error: unable to recognize "STDIN": no matches for kind "CSIDriver" in version "storage.k8s.io/v1"
modified version of ./hostpath/csi-hostpath-driverinfo.yaml:
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: hostpath.csi.k8s.io
spec:
# Supports persistent and ephemeral inline volumes.
volumeLifecycleModes:
- Persistent
- Ephemeral
# To determine at runtime which mode a volume uses, pod info and its
# "csi.storage.k8s.io/ephemeral" entry are needed.
podInfoOnMount: true
请提出解决此问题的方法。
解决方案
推荐阅读
- terminal - 如何自动运行 VSCode 自己的内置命令
- ios - 当 pjmedia_conf_connect_port 在 pjsip 中执行 SIGABRT 时,记录调用崩溃
- wix - 指定 TARGETDIR 的 Wix 安装程序
- excel - 如何制作每行单独包含的图表
- java - java.lang.NoClassDefFoundError: org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec
- swift - 我有字典数组类型的 JSON 数据。如何使用 Codable 协议对其进行解码?
- python - 如何允许非活动用户登录?
- javascript - 如何检查变量是否以特定格式定义?
- java - 我设置了 INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory" 但它仍然在寻找 websphere
- javascript - 如何 SpyOn 原生 JavaScript 函数?比如.find()?