forked from rook/rook
Normally the device class of an OSD is determined at provisioning and is not updated thereafter. In some scenarios the admin may want to force update the device class to a new value. The device classes can be updated by first setting allowDeviceClassUpdate in the storage spec of the cephcluster, then updating the device class specified on the deviceSets or other OSDs. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
#################################################################################################################
|
|
# 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:
|
|
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
|
|
# kubectl create -f cluster-test.yaml
|
|
#################################################################################################################
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephCluster
|
|
metadata:
|
|
name: my-cluster
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
dataDirHostPath: /var/lib/rook
|
|
cephVersion:
|
|
image: quay.io/ceph/ceph:v19
|
|
allowUnsupported: true
|
|
mon:
|
|
count: 1
|
|
allowMultiplePerNode: true
|
|
mgr:
|
|
count: 1
|
|
allowMultiplePerNode: true
|
|
modules:
|
|
- name: rook
|
|
enabled: true
|
|
dashboard:
|
|
enabled: true
|
|
crashCollector:
|
|
disable: true
|
|
storage:
|
|
useAllNodes: true
|
|
useAllDevices: true
|
|
allowDeviceClassUpdate: true
|
|
#deviceFilter:
|
|
#config:
|
|
# deviceClass: testclass
|
|
monitoring:
|
|
enabled: false
|
|
healthCheck:
|
|
daemonHealth:
|
|
mon:
|
|
interval: 45s
|
|
timeout: 600s
|
|
priorityClassNames:
|
|
all: system-node-critical
|
|
mgr: system-cluster-critical
|
|
disruptionManagement:
|
|
managePodBudgets: true
|
|
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"
|
|
---
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephBlockPool
|
|
metadata:
|
|
name: builtin-mgr
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
name: .mgr
|
|
replicated:
|
|
size: 1
|
|
requireSafeReplicaSize: false
|