Files
my-rook-config/deploy/examples/object-multisite.yaml
T
Jiffin Tony Thottan 8003e764f9 rgw: add custom endpoint list option for zone
User can define his desired endpoint list in Zone CR so that it will
overwrite the default service name for rgw.

Resolves #6432

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
2022-08-17 10:03:12 +05:30

56 lines
1.4 KiB
YAML

#################################################################################################################
# Create an object store with multisite settings for a production environment. A minimum of 3 hosts with OSDs
# are required in this example.
# kubectl create -f object-multisite.yaml
#################################################################################################################
apiVersion: ceph.rook.io/v1
kind: CephObjectRealm
metadata:
name: realm-a
namespace: rook-ceph # namespace:cluster
---
apiVersion: ceph.rook.io/v1
kind: CephObjectZoneGroup
metadata:
name: zonegroup-a
namespace: rook-ceph # namespace:cluster
spec:
realm: realm-a
---
apiVersion: ceph.rook.io/v1
kind: CephObjectZone
metadata:
name: zone-a
namespace: rook-ceph # namespace:cluster
spec:
zoneGroup: zonegroup-a
metadataPool:
failureDomain: host
replicated:
size: 3
requireSafeReplicaSize: true
dataPool:
failureDomain: host
replicated:
size: 3
requireSafeReplicaSize: true
parameters:
compression_mode: none
# recommended to set this value if ingress used for exposing rgw endpoints
# customEndpoints:
# - "http://rgw-a.fqdn"
# - "http://rgw-b.fqdn"
---
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: multisite-store
namespace: rook-ceph # namespace:cluster
spec:
gateway:
port: 80
# securePort: 443
instances: 1
zone:
name: zone-a