yato-consulting

Untitled

Jun 12th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.28 KB | None | 0 0
  1. apiVersion: ceph.rook.io/v1
  2. kind: CephBlockPool
  3. metadata:
  4.   name: replicated-rbd
  5.   namespace: rook-ceph
  6. spec:
  7.   failureDomain: host
  8.   replicated:
  9.     size: 3
  10. ---
  11. apiVersion: storage.k8s.io/v1
  12. kind: StorageClass
  13. metadata:
  14.   name: csi-rbd
  15. provisioner: rbd.csi.ceph.com
  16. parameters:
  17.  # Comma separated list of Ceph monitors
  18.   # if using FQDN, make sure csi plugin's dns policy is appropriate.
  19.   monitors: rook-ceph-mon-a.rook-ceph:6789,rook-ceph-mon-b.rook-ceph:6789,rook-ceph-mon-c.rook-ceph:6789
  20.  
  21.   # Ceph pool into which the RBD image shall be created
  22.   pool: replicated-rbd
  23.  
  24.   # RBD image format. Defaults to "2".
  25.   imageFormat: "2"
  26.  
  27.   # RBD image features. Available for imageFormat: "2". CSI RBD currently supports only `layering` feature.
  28.   imageFeatures: layering
  29.  
  30.   # The secrets have to contain Ceph admin credentials.
  31.   csi.storage.k8s.io/provisioner-secret-name: csi-rbd-secret
  32.   csi.storage.k8s.io/provisioner-secret-namespace: default
  33.   csi.storage.k8s.io/node-publish-secret-name: csi-rbd-secret
  34.   csi.storage.k8s.io/node-publish-secret-namespace: default
  35.  
  36.   # Ceph users for operating RBD
  37.   adminid: admin
  38.   userid: kubernetes
  39.   fsType: xfs
  40.   # uncomment the following to use rbd-nbd as mounter on supported nodes
  41.   #mounter: rbd-nbd
  42. reclaimPolicy: Delete
Advertisement
Add Comment
Please, Sign In to add comment