2019-02-07 15:29:26 +05:30
|
|
|
---
|
2018-07-18 16:49:15 +02:00
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
kind: StorageClass
|
|
|
|
metadata:
|
2019-05-07 20:19:45 +05:30
|
|
|
name: csi-rbd-sc
|
2019-03-13 10:39:58 +05:30
|
|
|
provisioner: rbd.csi.ceph.com
|
2018-07-18 16:49:15 +02:00
|
|
|
parameters:
|
2019-03-12 11:57:36 -04:00
|
|
|
# String representing a Ceph cluster to provision storage from.
|
2019-03-13 09:46:56 -04:00
|
|
|
# Should be unique across all Ceph clusters in use for provisioning,
|
2019-03-12 11:57:36 -04:00
|
|
|
# cannot be greater than 36 bytes in length, and should remain immutable for
|
|
|
|
# the lifetime of the StorageClass in use.
|
2019-04-22 17:35:39 -04:00
|
|
|
# Ensure to create an entry in the config map named ceph-csi-config, based on
|
|
|
|
# csi-config-map-sample.yaml, to accompany the string chosen to
|
|
|
|
# represent the Ceph cluster in clusterID below
|
|
|
|
clusterID: <cluster-id>
|
2018-09-21 14:38:50 +00:00
|
|
|
|
2019-02-07 15:29:26 +05:30
|
|
|
# Ceph pool into which the RBD image shall be created
|
|
|
|
pool: rbd
|
2018-07-18 16:49:15 +02:00
|
|
|
|
2019-02-07 15:29:26 +05:30
|
|
|
# RBD image format. Defaults to "2".
|
|
|
|
imageFormat: "2"
|
2018-07-18 16:49:15 +02:00
|
|
|
|
2019-02-07 15:29:26 +05:30
|
|
|
# RBD image features. Available for imageFormat: "2"
|
|
|
|
# CSI RBD currently supports only `layering` feature.
|
|
|
|
imageFeatures: layering
|
2018-08-09 22:07:00 +09:00
|
|
|
|
2019-06-01 17:26:42 -04:00
|
|
|
# The secrets have to contain Ceph credentials with required access
|
|
|
|
# to the 'pool'.
|
2019-02-07 15:29:26 +05:30
|
|
|
csi.storage.k8s.io/provisioner-secret-name: csi-rbd-secret
|
|
|
|
csi.storage.k8s.io/provisioner-secret-namespace: default
|
|
|
|
csi.storage.k8s.io/node-publish-secret-name: csi-rbd-secret
|
|
|
|
csi.storage.k8s.io/node-publish-secret-namespace: default
|
|
|
|
|
|
|
|
# uncomment the following to use rbd-nbd as mounter on supported nodes
|
|
|
|
# mounter: rbd-nbd
|
2018-07-18 16:49:15 +02:00
|
|
|
reclaimPolicy: Delete
|
2019-07-03 17:15:23 +05:30
|
|
|
mountOptions:
|
|
|
|
- discard
|