The functionality of the module might significantly change. Compatibility with future versions is not guaranteed.

Example of CephClusterConnection configuration

apiVersion: storage.deckhouse.io/v1alpha1
kind: CephClusterConnection
metadata:
  name: ceph-cluster-1
spec:
  clusterID: 0324bfe8-c36a-4829-bacd-9e28b6480de9
  monitors:
  - 172.20.1.28:6789
  - 172.20.1.34:6789
  - 172.20.1.37:6789
  • To verify the creation of the object, use the following command (Phase should be Created):
kubectl get cephclusterconnection <cephclusterconnection name>

Example of CephClusterAuthentication

apiVersion: storage.deckhouse.io/v1alpha1
kind: CephClusterAuthentication
metadata:
  name: ceph-auth-1
spec:
  userID: user
  userKey: AQDiVXVmBJVRLxAAg65PhODrtwbwSWrjJwssUg==
  • To verify the creation of the object, use the following command (Phase should be Created):
kubectl get cephclusterauthentication <cephclusterauthentication name>

Example of CephStorageClass configuration

RBD

apiVersion: storage.deckhouse.io/v1alpha1
kind: CephStorageClass
metadata:
  name: ceph-rbd-sc
spec:
  clusterConnectionName: ceph-cluster-1
  clusterAuthenticationName: ceph-auth-1
  reclaimPolicy: Delete
  type: RBD
  rbd:
    defaultFSType: ext4
    pool: ceph-rbd-pool  

CephFS

apiVersion: storage.deckhouse.io/v1alpha1
kind: CephStorageClass
metadata:
  name: ceph-fs-sc
spec:
  clusterConnectionName: ceph-cluster-1
  clusterAuthenticationName: ceph-auth-1
  reclaimPolicy: Delete
  type: CephFS
  cephFS:
    fsName: cephfs

To verify the creation of the object, use the following command (Phase should be Created):

kubectl get cephstorageclass <cephstorageclass name>