From 4fc2908e098c7a31cad26616fd5e1459ae195474 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 8 Aug 2021 16:23:08 +0200 Subject: [PATCH] [rook] add s3 support: works --- rook/object-bucket.yaml | 7 +++++++ rook/storageclass-object-bucket.yaml | 11 +++++++++++ rook/storageclass-object.yaml | 25 +++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 rook/object-bucket.yaml create mode 100644 rook/storageclass-object-bucket.yaml create mode 100644 rook/storageclass-object.yaml diff --git a/rook/object-bucket.yaml b/rook/object-bucket.yaml new file mode 100644 index 0000000..f1d0d48 --- /dev/null +++ b/rook/object-bucket.yaml @@ -0,0 +1,7 @@ +apiVersion: objectbucket.io/v1alpha1 +kind: ObjectBucketClaim +metadata: + name: ceph-bucket-test +spec: + generateBucketName: ceph-bkt + storageClassName: rook-ceph-bucket diff --git a/rook/storageclass-object-bucket.yaml b/rook/storageclass-object-bucket.yaml new file mode 100644 index 0000000..badb9c4 --- /dev/null +++ b/rook/storageclass-object-bucket.yaml @@ -0,0 +1,11 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: rook-ceph-bucket +# Change "rook-ceph" provisioner prefix to match the operator namespace if needed +provisioner: rook-ceph.ceph.rook.io/bucket +reclaimPolicy: Delete +parameters: + objectStoreName: rook-objectstore + objectStoreNamespace: rook-ceph + region: place7 diff --git a/rook/storageclass-object.yaml b/rook/storageclass-object.yaml new file mode 100644 index 0000000..c81798d --- /dev/null +++ b/rook/storageclass-object.yaml @@ -0,0 +1,25 @@ +apiVersion: ceph.rook.io/v1 +kind: CephObjectStore +metadata: + name: rook-objectstore + namespace: rook-ceph +spec: + metadataPool: + failureDomain: host + replicated: + size: 3 + dataPool: + failureDomain: host + erasureCoded: + dataChunks: 2 + codingChunks: 1 + preservePoolsOnDelete: true + gateway: + sslCertificateRef: + port: 80 + # securePort: 443 + instances: 1 + healthCheck: + bucket: + disabled: false + interval: 60s