-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2580 from rootfs/csi-driver
Deploy ceph-csi driver
- Loading branch information
Showing
33 changed files
with
2,882 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
cluster/examples/kubernetes/ceph/csi/example/cephfs/storageclass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: csi-cephfs | ||
provisioner: csi-cephfsplugin | ||
parameters: | ||
# Comma separated list of Ceph monitors | ||
# if using FQDN, make sure csi plugin's dns policy is appropriate. | ||
monitors: mon1:port,mon2:port,... | ||
|
||
# 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 | ||
# to provide path to that volume (rootPath) and user credentials (userID, userKey). | ||
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. | ||
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 | ||
|
||
# (optional) The driver can use either ceph-fuse (fuse) or ceph kernel client (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. | ||
# mounter: kernel | ||
reclaimPolicy: Delete |
11 changes: 11 additions & 0 deletions
11
cluster/examples/kubernetes/ceph/csi/example/rbd/snapshotclass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: snapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeSnapshotClass | ||
metadata: | ||
name: csi-rbdplugin-snapclass | ||
snapshotter: csi-rbdplugin | ||
parameters: | ||
pool: rbd | ||
monitors: mon1:port,mon2:port,... | ||
csi.storage.k8s.io/snapshotter-secret-name: csi-rbd-secret | ||
csi.storage.k8s.io/snapshotter-secret-namespace: default |
37 changes: 37 additions & 0 deletions
37
cluster/examples/kubernetes/ceph/csi/example/rbd/storageclass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: csi-rbd | ||
provisioner: csi-rbdplugin | ||
parameters: | ||
# Comma separated list of Ceph monitors | ||
# if using FQDN, make sure csi plugin's dns policy is appropriate. | ||
monitors: mon1:port,mon2:port,... | ||
|
||
# if "monitors" parameter is not set, driver to get monitors from same | ||
# secret as admin/user credentials. "monValueFromSecret" provides the | ||
# key in the secret whose value is the mons | ||
#monValueFromSecret: "monitors" | ||
|
||
|
||
# Ceph pool into which the RBD image shall be created | ||
pool: rbd | ||
|
||
# RBD image format. Defaults to "2". | ||
imageFormat: "2" | ||
|
||
# RBD image features. Available for imageFormat: "2". CSI RBD currently supports only `layering` feature. | ||
imageFeatures: layering | ||
|
||
# The secrets have to contain Ceph admin credentials. | ||
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 | ||
|
||
# Ceph users for operating RBD | ||
adminid: admin | ||
userid: kubernetes | ||
# uncomment the following to use rbd-nbd as mounter on supported nodes | ||
#mounter: rbd-nbd | ||
reclaimPolicy: Delete |
Oops, something went wrong.