2020-07-14 17:27:46 -04:00
#################################################################################################################
2021-05-11 16:12:10 -04:00
# Create an object store with multisite settings that is syncing with another multisite cluster for a
# production environment. A minimum of 3 hosts with OSDs are required in this example.
# kubectl create -f object-multisite-pull-realm.yaml
2020-07-14 17:27:46 -04:00
#################################################################################################################
apiVersion : v1
kind : Secret
metadata :
name : realm-a-keys
2021-05-11 16:12:10 -04:00
namespace : rook-ceph-secondary
2020-07-14 17:27:46 -04:00
data :
# TODO: Replace with keys for your cluster
# these keys should be the base64 encoded versions of the actual keys or copied from the realm's on the other cluster's secret
access-key : VzFjNFltMVdWRTFJWWxZelZWQT0=
secret-key : WVY1MFIxeExkbG84U3pKdlRseEZXVGR3T3k1U1dUSS9KaTFoUVE9PQ==
---
apiVersion : ceph.rook.io/v1
kind : CephObjectRealm
metadata :
name : realm-a
2021-05-11 16:12:10 -04:00
namespace : rook-ceph-secondary
2020-07-14 17:27:46 -04:00
spec :
# This endpoint in this section needs is an endpoint from the master zone in the master zone group of realm-a. See object-multisite.md for more details.
2021-08-06 13:17:24 -04:00
# This value must include http(s):// at the beginning
# ex:
# pull:
# endpoint: http://10.103.133.16:80
2020-07-14 17:27:46 -04:00
pull :
2021-08-06 13:17:24 -04:00
endpoint : <endpoint>
2020-07-14 17:27:46 -04:00
---
apiVersion : ceph.rook.io/v1
kind : CephObjectZoneGroup
metadata :
name : zonegroup-a
2021-05-11 16:12:10 -04:00
namespace : rook-ceph-secondary
2020-07-14 17:27:46 -04:00
spec :
realm : realm-a
---
apiVersion : ceph.rook.io/v1
kind : CephObjectZone
metadata :
name : zone-b
2021-05-11 16:12:10 -04:00
namespace : rook-ceph-secondary
2020-07-14 17:27:46 -04:00
spec :
zoneGroup : zonegroup-a
metadataPool :
failureDomain : host
replicated :
2021-05-11 16:12:10 -04:00
size : 3
2020-07-14 17:27:46 -04:00
requireSafeReplicaSize : true
dataPool :
failureDomain : host
replicated :
2021-05-11 16:12:10 -04:00
size : 3
2020-07-14 17:27:46 -04:00
requireSafeReplicaSize : true
---
apiVersion : ceph.rook.io/v1
kind : CephObjectStore
metadata :
name : zone-b-multisite-store
2021-05-11 16:12:10 -04:00
namespace : rook-ceph-secondary
2020-07-14 17:27:46 -04:00
spec :
gateway :
port : 80
2020-09-02 12:14:01 +05:30
# securePort: 443
2020-07-14 17:27:46 -04:00
instances : 1
zone :
name : zone-b