2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:49:15 +00:00
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
kind: StorageClass
|
|
|
|
metadata:
|
|
|
|
name: csi-cephfs
|
|
|
|
provisioner: csi-cephfsplugin
|
|
|
|
parameters:
|
|
|
|
# Comma separated list of Ceph monitors
|
2019-02-07 09:59:26 +00:00
|
|
|
# if using FQDN, make sure csi plugin's dns policy is appropriate.
|
2018-07-18 14:49:15 +00:00
|
|
|
monitors: mon1:port,mon2:port,...
|
|
|
|
|
2018-08-08 13:20:41 +00:00
|
|
|
# For provisionVolume: "true":
|
|
|
|
# A new volume will be created along with a new Ceph user.
|
|
|
|
# Requires admin credentials (adminID, adminKey).
|
|
|
|
# For provisionVolume: "false":
|
|
|
|
# It is assumed the volume already exists and the user is expected
|
2019-02-07 09:59:26 +00:00
|
|
|
# to provide path to that volume (rootPath) and user credentials
|
|
|
|
# (userID, userKey).
|
2018-07-18 14:49:15 +00:00
|
|
|
provisionVolume: "true"
|
|
|
|
|
|
|
|
# Ceph pool into which the volume shall be created
|
|
|
|
# Required for provisionVolume: "true"
|
|
|
|
pool: cephfs_data
|
|
|
|
|
|
|
|
# Root path of an existing CephFS volume
|
|
|
|
# Required for provisionVolume: "false"
|
|
|
|
# rootPath: /absolute/path
|
|
|
|
|
|
|
|
# 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
|