2019-01-25 19:10:20 +00:00
|
|
|
---
|
2021-03-12 09:32:56 +00:00
|
|
|
# Snapshot API version compatibility matrix:
|
|
|
|
# v1betav1:
|
|
|
|
# v1.17 =< k8s < v1.20
|
|
|
|
# 2.x =< snapshot-controller < v4.x
|
|
|
|
# v1:
|
|
|
|
# k8s >= v1.20
|
|
|
|
# snapshot-controller >= v4.x
|
|
|
|
# We recommend to use {sidecar, controller, crds} of same version
|
|
|
|
apiVersion: snapshot.storage.k8s.io/v1
|
2019-01-25 19:10:20 +00:00
|
|
|
kind: VolumeSnapshotClass
|
|
|
|
metadata:
|
|
|
|
name: csi-rbdplugin-snapclass
|
2020-04-16 06:31:33 +00:00
|
|
|
driver: rbd.csi.ceph.com
|
2019-01-25 19:10:20 +00:00
|
|
|
parameters:
|
2019-03-12 15:57:36 +00:00
|
|
|
# String representing a Ceph cluster to provision storage from.
|
2019-03-13 13:46:56 +00:00
|
|
|
# Should be unique across all Ceph clusters in use for provisioning,
|
2019-03-12 15:57:36 +00:00
|
|
|
# cannot be greater than 36 bytes in length, and should remain immutable for
|
|
|
|
# the lifetime of the StorageClass in use.
|
2020-06-10 06:23:03 +00:00
|
|
|
# Ensure to create an entry in the configmap named ceph-csi-config, based on
|
2019-04-22 21:35:39 +00:00
|
|
|
# csi-config-map-sample.yaml, to accompany the string chosen to
|
|
|
|
# represent the Ceph cluster in clusterID below
|
|
|
|
clusterID: <cluster-id>
|
|
|
|
|
2020-05-22 05:08:55 +00:00
|
|
|
# Prefix to use for naming RBD snapshots.
|
|
|
|
# If omitted, defaults to "csi-snap-".
|
|
|
|
# snapshotNamePrefix: "foo-bar-"
|
|
|
|
|
2019-01-25 19:10:20 +00:00
|
|
|
csi.storage.k8s.io/snapshotter-secret-name: csi-rbd-secret
|
|
|
|
csi.storage.k8s.io/snapshotter-secret-namespace: default
|
2020-04-16 06:31:33 +00:00
|
|
|
deletionPolicy: Delete
|