By default, we should set the priority class to one of the built-in
priority class names to ensure that pods critical to the storage
will be able to remain running when resources are low. Otherwise,
critical rook pods could be evicted and affect many other pods
that rely on the storage to continue functioning. The options have
been available in the CRs, but until now we have just not set the
defaults in the examples. Critical rook components are now set to
the priority class system-node-critical if they are generally pinned
to a node, and system-cluster-critical if they are critical to the storage.
Some pods such as the operator and crash collector do not have a
default priority class set in the examples since they don't affect
the data path.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit fb86955f01)
68 lines
1.7 KiB
YAML
68 lines
1.7 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
|
|
#################################################################################################################
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: rook-config-override
|
|
namespace: rook-ceph # namespace:cluster
|
|
data:
|
|
config: |
|
|
[global]
|
|
osd_pool_default_size = 1
|
|
mon_warn_on_pool_no_redundancy = false
|
|
bdev_flock_retry = 20
|
|
bluefs_buffered_io = false
|
|
---
|
|
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:v17
|
|
allowUnsupported: true
|
|
mon:
|
|
count: 1
|
|
allowMultiplePerNode: true
|
|
mgr:
|
|
count: 1
|
|
allowMultiplePerNode: true
|
|
dashboard:
|
|
enabled: true
|
|
crashCollector:
|
|
disable: true
|
|
storage:
|
|
useAllNodes: true
|
|
useAllDevices: true
|
|
#deviceFilter:
|
|
healthCheck:
|
|
daemonHealth:
|
|
mon:
|
|
interval: 45s
|
|
timeout: 600s
|
|
priorityClassNames:
|
|
all: system-node-critical
|
|
mgr: system-cluster-critical
|
|
disruptionManagement:
|
|
managePodBudgets: true
|
|
---
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephBlockPool
|
|
metadata:
|
|
name: builtin-mgr
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
name: .mgr
|
|
replicated:
|
|
size: 1
|
|
requireSafeReplicaSize: false
|