2019-03-13 23:15:14 -06:00
#################################################################################################################
# Create a Ceph pool with settings for replication in production environments. A minimum of 3 OSDs on
# different hosts are required in this example.
# kubectl create -f pool.yaml
#################################################################################################################
2018-12-03 15:08:29 -07:00
apiVersion : ceph.rook.io/v1
2018-12-03 23:48:40 -07:00
kind : CephBlockPool
2017-03-27 09:12:56 -07:00
metadata :
name : replicapool
2020-12-09 13:21:15 -07:00
namespace : rook-ceph # namespace:cluster
2017-03-31 10:20:30 -07:00
spec :
2017-10-05 17:23:12 -07:00
# The failure domain will spread the replicas of the data across different failure zones
2019-03-13 23:15:14 -06:00
failureDomain : host
2017-04-10 08:47:16 -07:00
# For a pool based on raw copies, specify the number of copies. A size of 1 indicates no redundancy.
2017-09-11 14:56:10 -07:00
replicated :
2019-03-13 23:15:14 -06:00
size : 3
2020-02-20 11:37:09 +01:00
# Disallow setting pool with replica 1, this could lead to data loss without recovery.
# Make sure you're *ABSOLUTELY CERTAIN* that is what you want
requireSafeReplicaSize : true
2021-06-17 15:16:46 +05:30
# hybridStorage:
# primaryDeviceClass: ssd
# secondaryDeviceClass: hdd
2020-10-05 15:46:22 +02:00
# The number for replicas per failure domain, the value must be a divisor of the replica count. If specified, the most common value is 2 for stretch clusters, where the replica count would be 4.
# replicasPerFailureDomain: 2
# The name of the failure domain to place further down replicas
# subFailureDomain: host
2020-03-17 15:01:01 +01:00
# Ceph CRUSH root location of the rule
2021-07-28 14:00:35 -06:00
# For reference: https://docs.ceph.com/docs/master/rados/operations/crush-map/#types-and-buckets
2020-03-17 15:01:01 +01:00
#crushRoot: my-root
# The Ceph CRUSH device class associated with the CRUSH replicated rule
2021-07-28 14:00:35 -06:00
# For reference: https://docs.ceph.com/docs/master/rados/operations/crush-map/#device-classes
2020-03-17 15:01:01 +01:00
#deviceClass: my-class
2020-08-05 14:18:26 +05:30
# Enables collecting RBD per-image IO statistics by enabling dynamic OSD performance counters. Defaults to false.
# For reference: https://docs.ceph.com/docs/master/mgr/prometheus/#rbd-io-statistics
# enableRBDStats: true
2020-06-09 18:16:58 +02:00
# Set any property on a given pool
# see https://docs.ceph.com/docs/master/rados/operations/pools/#set-pool-values
parameters :
# Inline compression mode for the data pool
2021-07-28 14:00:35 -06:00
# Further reference: https://docs.ceph.com/docs/master/rados/configuration/bluestore-config-ref/#inline-compression
2020-06-09 18:16:58 +02:00
compression_mode : none
# gives a hint (%) to Ceph in terms of expected consumption of the total cluster capacity of a given pool
# for more info: https://docs.ceph.com/docs/master/rados/operations/placement-groups/#specifying-expected-pool-size
2020-07-17 11:16:00 -06:00
#target_size_ratio: ".5"
2020-08-25 09:46:18 +02:00
mirroring :
enabled : false
# mirroring mode: pool level or per image
# for more details see: https://docs.ceph.com/docs/master/rbd/rbd-mirroring/#enable-mirroring
mode : image
2020-11-05 12:01:01 +01:00
# specify the schedule(s) on which snapshots should be taken
# snapshotSchedules:
# - interval: 24h # daily snapshots
# startTime: 14:00:00-05:00
2020-08-25 09:46:18 +02:00
# reports pool mirroring status if enabled
statusCheck :
mirror :
disabled : false
interval : 60s
2021-02-18 11:28:47 -05:00
# quota in bytes and/or objects, default value is 0 (unlimited)
# see https://docs.ceph.com/en/latest/rados/operations/pools/#set-pool-quotas
# quotas:
2021-03-16 09:58:04 -04:00
# maxSize: "10Gi" # valid suffixes include k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei
2021-02-18 11:28:47 -05:00
# maxObjects: 1000000000 # 1 billion objects
2019-03-05 11:21:57 +01:00
# A key/value list of annotations
annotations :
# key: value