2019-03-13 23:15:14 -06:00
|
|
|
#################################################################################################################
|
|
|
|
|
# Create a Ceph pool with settings for erasure coding. A minimum of 3 OSDs are required in this example.
|
|
|
|
|
# kubectl create -f pool-ec.yaml
|
|
|
|
|
#################################################################################################################
|
|
|
|
|
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephBlockPool
|
|
|
|
|
metadata:
|
|
|
|
|
name: ec-pool
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
2019-03-13 23:15:14 -06:00
|
|
|
spec:
|
|
|
|
|
# The failure domain will spread the replicas of the data across different failure zones
|
2021-12-13 10:00:58 +05:30
|
|
|
failureDomain: host
|
2019-03-13 23:15:14 -06:00
|
|
|
# Make sure you have enough OSDs to support the replica size or sum of the erasure coding and data chunks.
|
|
|
|
|
# This is the minimal example that requires only 3 OSDs.
|
|
|
|
|
erasureCoded:
|
|
|
|
|
dataChunks: 2
|
|
|
|
|
codingChunks: 1
|
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
|
|
|
|
|
compression_mode: none
|
2025-12-03 10:42:58 -07:00
|
|
|
# Ceph Tentacle v20 or newer has EC optimizations that need to be explicitly enabled
|
|
|
|
|
# allow_ec_optimizations: "true"
|