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
|
|
|
#################################################################################################################
|
|
|
|
|
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:
|
2025-12-01 13:43:20 +05:30
|
|
|
image: quay.io/ceph/ceph:v20
|
2020-04-21 15:14:08 -06:00
|
|
|
allowUnsupported: true
|
|
|
|
|
mon:
|
|
|
|
|
count: 1
|
|
|
|
|
allowMultiplePerNode: true
|
2025-02-05 12:08:48 -07:00
|
|
|
# test environments can skip ok-to-stop checks during upgrades
|
|
|
|
|
skipUpgradeChecks: true
|
2021-01-17 10:54:22 +08:00
|
|
|
mgr:
|
|
|
|
|
count: 1
|
|
|
|
|
allowMultiplePerNode: true
|
2024-02-13 12:31:33 +01:00
|
|
|
modules:
|
|
|
|
|
- name: rook
|
|
|
|
|
enabled: true
|
2020-04-21 15:14:08 -06:00
|
|
|
dashboard:
|
|
|
|
|
enabled: true
|
|
|
|
|
crashCollector:
|
|
|
|
|
disable: true
|
|
|
|
|
storage:
|
|
|
|
|
useAllNodes: true
|
|
|
|
|
useAllDevices: true
|
2024-07-12 17:12:36 -06:00
|
|
|
allowDeviceClassUpdate: true
|
2024-07-08 20:43:04 +05:30
|
|
|
allowOsdCrushWeightUpdate: false
|
2020-04-21 15:14:08 -06:00
|
|
|
#deviceFilter:
|
2024-07-12 17:12:36 -06:00
|
|
|
#config:
|
|
|
|
|
# deviceClass: testclass
|
2023-04-03 13:13:21 -06:00
|
|
|
monitoring:
|
|
|
|
|
enabled: false
|
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
|
2023-11-21 12:11:16 +01:00
|
|
|
cephConfig:
|
|
|
|
|
global:
|
|
|
|
|
osd_pool_default_size: "1"
|
|
|
|
|
mon_warn_on_pool_no_redundancy: "false"
|
|
|
|
|
bdev_flock_retry: "20"
|
|
|
|
|
bluefs_buffered_io: "false"
|
|
|
|
|
mon_data_avail_warn: "10"
|
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
|