forked from rook/rook
A new CRD property `PreservePoolsOnDelete` has been added to Filesystem(fs) and Object Store(os) resources in order to increase protection against data loss. If it is set to `true`, associated pools won't be deleted when the main resource(fs/os) is deleted. Creating again the deleted fs/os with the same name will reuse the preserved pools. Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
24 lines
672 B
YAML
24 lines
672 B
YAML
#################################################################################################################
|
|
# Create an object store with settings for a test environment. Only a single OSD is required in this example.
|
|
# kubectl create -f object-test.yaml
|
|
#################################################################################################################
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephObjectStore
|
|
metadata:
|
|
name: my-store
|
|
namespace: rook-ceph
|
|
spec:
|
|
metadataPool:
|
|
replicated:
|
|
size: 1
|
|
dataPool:
|
|
replicated:
|
|
size: 1
|
|
preservePoolsOnDelete: false
|
|
gateway:
|
|
type: s3
|
|
port: 80
|
|
securePort:
|
|
instances: 1
|