The RBAC is tedious to copy everywhere with the cluster.yaml and is confusing to newcomers. The common resources are now factored into the operator-common.yaml for the common scenario of creating a single cluster. Examples are now added for configuration of the operator and cluster crds to provide a more complete set. Signed-off-by: travisn <tnielsen@redhat.com>
24 lines
715 B
YAML
24 lines
715 B
YAML
#################################################################################################################
|
|
# Create a storage class with a pool for a test environment. Only a single OSD is required in this example.
|
|
# kubectl create -f storageclass-test.yaml
|
|
#################################################################################################################
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephBlockPool
|
|
metadata:
|
|
name: replicapool
|
|
namespace: rook-ceph
|
|
spec:
|
|
replicated:
|
|
size: 1
|
|
---
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: rook-ceph-block
|
|
provisioner: ceph.rook.io/block
|
|
parameters:
|
|
blockPool: replicapool
|
|
clusterNamespace: rook-ceph
|
|
fstype: xfs
|