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:
|
2020-09-23 17:02:11 +00:00
|
|
|
# (required) String representing a Ceph cluster to provision storage from.
|
2019-05-28 19:03:18 +00:00
|
|
|
# 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.
|
2020-06-10 06:23:03 +00:00
|
|
|
# Ensure to create an entry in the configmap named ceph-csi-config, based on
|
2019-05-28 19:03:18 +00:00
|
|
|
# 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
|
|
|
|
2020-09-23 08:29:17 +00:00
|
|
|
# (required) CephFS filesystem name into which the volume shall be created
|
|
|
|
# eg: fsName: myfs
|
|
|
|
fsName: <cephfs-name>
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2019-08-05 15:40:48 +00:00
|
|
|
# (optional) Ceph pool into which volume data shall be stored
|
2020-09-23 08:29:17 +00:00
|
|
|
# pool: <cephfs-data-pool>
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2019-08-28 09:47:12 +00:00
|
|
|
# (optional) Comma separated string of Ceph-fuse mount options.
|
|
|
|
# For eg:
|
|
|
|
# fuseMountOptions: debug
|
|
|
|
|
|
|
|
# (optional) Comma separated string of Cephfs kernel mount options.
|
|
|
|
# Check man mount.ceph for mount options. For eg:
|
|
|
|
# kernelMountOptions: readdir_max_bytes=1048576,norbytes
|
|
|
|
|
2018-07-18 14:49:15 +00:00
|
|
|
# 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
|
2019-11-25 11:09:24 +00:00
|
|
|
csi.storage.k8s.io/controller-expand-secret-name: csi-cephfs-secret
|
|
|
|
csi.storage.k8s.io/controller-expand-secret-namespace: default
|
2019-01-23 15:58:50 +00:00
|
|
|
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
|
2019-09-05 06:43:53 +00:00
|
|
|
# determined by probing for ceph-fuse and mount.ceph
|
2018-07-18 14:49:15 +00:00
|
|
|
# mounter: kernel
|
2020-05-22 05:08:55 +00:00
|
|
|
|
|
|
|
# (optional) Prefix to use for naming subvolumes.
|
|
|
|
# If omitted, defaults to "csi-vol-".
|
|
|
|
# volumeNamePrefix: "foo-bar-"
|
|
|
|
|
2018-07-18 14:49:15 +00:00
|
|
|
reclaimPolicy: Delete
|
2019-11-25 11:09:24 +00:00
|
|
|
allowVolumeExpansion: true
|
2019-06-06 12:18:11 +00:00
|
|
|
mountOptions:
|
2019-07-04 09:16:59 +00:00
|
|
|
- debug
|