2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:49:15 +00:00
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
kind: StorageClass
|
|
|
|
metadata:
|
2019-05-07 14:49:45 +00:00
|
|
|
name: csi-cephfs-sc
|
2019-03-13 05:09:58 +00:00
|
|
|
provisioner: cephfs.csi.ceph.com
|
2018-07-18 14:49:15 +00:00
|
|
|
parameters:
|
2019-05-28 19:03:18 +00:00
|
|
|
# String representing a Ceph cluster to provision storage from.
|
|
|
|
# Should be unique across all Ceph clusters in use for provisioning,
|
|
|
|
# cannot be greater than 36 bytes in length, and should remain immutable for
|
|
|
|
# the lifetime of the StorageClass in use.
|
|
|
|
# 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-07-18 14:49:15 +00:00
|
|
|
|
2019-05-28 19:03:18 +00:00
|
|
|
# CephFS filesystem name into which the volume shall be created
|
|
|
|
fsName: myfs
|
2018-07-18 14:49:15 +00:00
|
|
|
|
|
|
|
# Ceph pool into which the volume shall be created
|
|
|
|
pool: cephfs_data
|
|
|
|
|
|
|
|
# The secrets have to contain user and/or Ceph admin credentials.
|
2019-01-23 15:58:50 +00:00
|
|
|
csi.storage.k8s.io/provisioner-secret-name: csi-cephfs-secret
|
|
|
|
csi.storage.k8s.io/provisioner-secret-namespace: default
|
|
|
|
csi.storage.k8s.io/node-stage-secret-name: csi-cephfs-secret
|
|
|
|
csi.storage.k8s.io/node-stage-secret-namespace: default
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2019-02-07 09:59:26 +00:00
|
|
|
# (optional) The driver can use either ceph-fuse (fuse) or
|
|
|
|
# ceph kernelclient (kernel).
|
|
|
|
# If omitted, default volume mounter will be used - this is
|
|
|
|
# determined by probing for ceph-fuse
|
|
|
|
# or by setting the default mounter explicitly via
|
|
|
|
# --volumemounter command-line argument.
|
2018-07-18 14:49:15 +00:00
|
|
|
# mounter: kernel
|
|
|
|
reclaimPolicy: Delete
|