[rook] add s3 support: works

This commit is contained in:
Nico Schottelius 2021-08-08 16:23:08 +02:00
parent 323a19652b
commit 4fc2908e09
3 changed files with 43 additions and 0 deletions

7
rook/object-bucket.yaml Normal file
View file

@ -0,0 +1,7 @@
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: ceph-bucket-test
spec:
generateBucketName: ceph-bkt
storageClassName: rook-ceph-bucket

View file

@ -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

View file

@ -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