As of Octopus, Ceph will prevent you from creating a pool with a replica size of 1. Allowing such pool could lead to data loss, so enable the new option: requireSafeReplicaSize: false if you are **ABSOLUTELY** certain that is what you want. Closes: https://github.com/rook/rook/issues/4889 Signed-off-by: Sébastien Han <seb@redhat.com>
25 lines
752 B
YAML
25 lines
752 B
YAML
#################################################################################################################
|
|
# Create a filesystem with settings for a test environment where only a single OSD is required.
|
|
# kubectl create -f filesystem-test.yaml
|
|
#################################################################################################################
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephFilesystem
|
|
metadata:
|
|
name: myfs
|
|
namespace: rook-ceph
|
|
spec:
|
|
metadataPool:
|
|
replicated:
|
|
size: 1
|
|
requireSafeReplicaSize: false
|
|
dataPools:
|
|
- failureDomain: osd
|
|
replicated:
|
|
size: 1
|
|
requireSafeReplicaSize: false
|
|
preservePoolsOnDelete: false
|
|
metadataServer:
|
|
activeCount: 1
|
|
activeStandby: true
|