2020-04-21 15:14:08 -06:00
|
|
|
#################################################################################################################
|
|
|
|
|
# Define the settings for the rook-ceph cluster with common settings for a small test cluster.
|
|
|
|
|
# All nodes with available raw devices will be used for the Ceph cluster. One node is sufficient
|
|
|
|
|
# in this example.
|
|
|
|
|
|
|
|
|
|
# For example, to create the cluster:
|
2020-11-12 15:19:01 -07:00
|
|
|
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
|
|
|
|
|
# kubectl create -f cluster-test.yaml
|
2020-04-21 15:14:08 -06:00
|
|
|
#################################################################################################################
|
2020-05-07 16:26:30 -06:00
|
|
|
kind: ConfigMap
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
metadata:
|
|
|
|
|
name: rook-config-override
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
2020-05-07 16:26:30 -06:00
|
|
|
data:
|
|
|
|
|
config: |
|
|
|
|
|
[global]
|
2022-04-08 15:58:43 -06:00
|
|
|
osd_pool_default_size = 1
|
2020-07-29 12:50:59 +02:00
|
|
|
mon_warn_on_pool_no_redundancy = false
|
2021-04-22 11:17:30 +02:00
|
|
|
bdev_flock_retry = 20
|
2021-06-23 10:16:29 +02:00
|
|
|
bluefs_buffered_io = false
|
2020-05-07 16:26:30 -06:00
|
|
|
---
|
2020-04-21 15:14:08 -06:00
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephCluster
|
|
|
|
|
metadata:
|
|
|
|
|
name: my-cluster
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
2020-04-21 15:14:08 -06:00
|
|
|
spec:
|
|
|
|
|
dataDirHostPath: /var/lib/rook
|
|
|
|
|
cephVersion:
|
2022-08-01 21:04:10 +05:30
|
|
|
image: quay.io/ceph/ceph:v17
|
2020-04-21 15:14:08 -06:00
|
|
|
allowUnsupported: true
|
|
|
|
|
mon:
|
|
|
|
|
count: 1
|
|
|
|
|
allowMultiplePerNode: true
|
2021-01-17 10:54:22 +08:00
|
|
|
mgr:
|
|
|
|
|
count: 1
|
|
|
|
|
allowMultiplePerNode: true
|
2020-04-21 15:14:08 -06:00
|
|
|
dashboard:
|
|
|
|
|
enabled: true
|
|
|
|
|
crashCollector:
|
|
|
|
|
disable: true
|
|
|
|
|
storage:
|
|
|
|
|
useAllNodes: true
|
|
|
|
|
useAllDevices: true
|
|
|
|
|
#deviceFilter:
|
2020-08-10 14:28:54 -06:00
|
|
|
healthCheck:
|
|
|
|
|
daemonHealth:
|
|
|
|
|
mon:
|
|
|
|
|
interval: 45s
|
|
|
|
|
timeout: 600s
|
2022-04-18 10:13:08 -06:00
|
|
|
priorityClassNames:
|
|
|
|
|
all: system-node-critical
|
|
|
|
|
mgr: system-cluster-critical
|
2021-01-27 14:52:34 -07:00
|
|
|
disruptionManagement:
|
|
|
|
|
managePodBudgets: true
|
2021-12-08 16:14:29 -07:00
|
|
|
---
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephBlockPool
|
|
|
|
|
metadata:
|
2022-04-05 12:35:57 -06:00
|
|
|
name: builtin-mgr
|
2021-12-08 16:14:29 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
|
|
|
|
spec:
|
2022-03-10 12:48:23 -07:00
|
|
|
name: .mgr
|
2021-12-08 16:14:29 -07:00
|
|
|
replicated:
|
|
|
|
|
size: 1
|
|
|
|
|
requireSafeReplicaSize: false
|