[rook] add s3 support: works
This commit is contained in:
parent
323a19652b
commit
4fc2908e09
3 changed files with 43 additions and 0 deletions
7
rook/object-bucket.yaml
Normal file
7
rook/object-bucket.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: objectbucket.io/v1alpha1
|
||||
kind: ObjectBucketClaim
|
||||
metadata:
|
||||
name: ceph-bucket-test
|
||||
spec:
|
||||
generateBucketName: ceph-bkt
|
||||
storageClassName: rook-ceph-bucket
|
11
rook/storageclass-object-bucket.yaml
Normal file
11
rook/storageclass-object-bucket.yaml
Normal 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
|
25
rook/storageclass-object.yaml
Normal file
25
rook/storageclass-object.yaml
Normal 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
|
Loading…
Reference in a new issue