[root@kube-master-01 ~]# more ceph-csi-capability.yaml
apiVersion: storage.kubesphere.io/v1alpha1
kind: ProvisionerCapability
metadata:
name: rbd-csi-ceph-com
spec:
pluginInfo:
name: rbd.csi.ceph.com
version: ""
features:
topology: false
volume:
create: true
attach: true
clone: true
list: false
stats: false
expandMode: ONLINE
snapshot:
create: true
list: false
parameters:
clusterID: f86f2702-e7d3-4d24-830a-9a49a581b186
csi.storage.k8s.io/snapshotter-secret-name: csi-rbd-secret
csi.storage.k8s.io/snapshotter-secret-namespace: kube-system
You have new mail in /var/spool/mail/root
kubectl apply -f ceph-csi-capability.yaml
kubectl edit volumesnapshotclass csi-rbd-sc
storageclass.kubesphere.io/support-snapshot: ‘true’