功能 | 说明 |
静态数据卷 | 支持手动创建 Volume、PV 对象及 PVC 对象 |
动态数据卷 | 支持通过 StorageClass 配置、创建和删除 Volume 及 PV 对象 |
存储拓扑感知 | 云硬盘不支持跨可用区挂载,在多可用区集群中,CBS-CSI 组件将先调度 Pod,后调度 Node 的 zone 创建 Volume |
调度器感知节点 maxAttachLimit | 腾讯云单个云服务器上默认最多挂载20块云硬盘,调度器调度 Pod 时将过滤超过最大可挂载云硬盘数量的节点 |
卷在线扩容 | 支持通过修改 PVC 容量字段,实现在线扩容(仅支持云硬盘类型) |
卷快照和恢复 | 支持通过快照创建数据卷 |
功能 | 涉及对象 | 涉及操作权限 |
获取 node 资源中 providerID 来感知节点最大可挂盘数量 | node | get/list |
根据 pvc/pv 等信息完成盘的创建和删除 | pv/pvc/storageclasses/csinode | get/list/watch/create/update/patch/delete |
根据 volumeattachments 资源对象来完成盘的挂载和卸载 | volumeattachments/volumesnapshotclasses | create/get/list/watch/update/delete |
对盘进行扩容快照 | pod/volumesnapshotclasses/volumesnapshots/configmap | get/list/watch |
kind: ClusterRoleapiVersion: rbac.authorization.k8s.io/v1metadata:name: cbs-csi-controller-rolerules:- apiGroups: [""]resources: ["pods"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["persistentvolumes"]verbs: ["get", "list", "watch", "update", "patch", "create", "delete"]- apiGroups: [""]resources: ["persistentvolumeclaims"]verbs: ["get", "list", "watch", "update"]- apiGroups: [""]resources: ["persistentvolumeclaims/status"]verbs: ["update", "patch"]- apiGroups: ["storage.k8s.io"]resources: ["storageclasses"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["events"]verbs: ["get", "list", "watch", "create", "update", "patch"]- apiGroups: ["storage.k8s.io"]resources: ["csinodes"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["nodes"]verbs: ["get", "list", "watch"]- apiGroups: ["coordination.k8s.io"]resources: ["leases"]verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]- apiGroups: ["csi.storage.k8s.io"]resources: ["csinodeinfos"]verbs: ["get", "list", "watch"]- apiGroups: ["storage.k8s.io"]resources: ["volumeattachments", "volumeattachments/status"]verbs: ["get", "list", "watch", "update", "patch"]- apiGroups: ["snapshot.storage.k8s.io"]resources: ["volumesnapshotclasses"]verbs: ["get", "list", "watch"]- apiGroups: ["snapshot.storage.k8s.io"]resources: ["volumesnapshotcontents"]verbs: ["create", "get", "list", "watch", "update", "delete"]- apiGroups: ["snapshot.storage.k8s.io"]resources: ["volumesnapshots"]verbs: ["get", "list", "watch", "update"]- apiGroups: ["apiextensions.k8s.io"]resources: ["customresourcedefinitions"]verbs: ["create", "list", "watch", "delete"]- apiGroups: ["snapshot.storage.k8s.io"]resources: ["volumesnapshotcontents/status"]verbs: ["update"]- apiGroups: ["snapshot.storage.k8s.io"]resources: ["volumesnapshots/status"]verbs: ["update"]- apiGroups: [""]resources: ["configmaps"]verbs: ["get", "list", "watch", "update", "patch", "create", "delete"]---kind: ClusterRoleapiVersion: rbac.authorization.k8s.io/v1metadata:name: cbs-csi-node-rolenamespace: kube-systemrules:- apiGroups: [""]resources: ["nodes"]verbs: ["get", "list"]
本页内容是否解决了您的问题?