Files
my-rook-config/cluster/examples/kubernetes/ceph/object-multisite-pull-realm.yaml
T
Satoru Takeuchi c2adbdd8a8 ceph: remove an missing field in crd
`CephObjectStore->gateway->type` is not used. Rook has only supported s3-like
interface and hasn't had no code which handles `type` field.

In addition, this field was removed from CRD in the following commit.

ceph: auto-gen crds
31db03fece

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-05-17 07:51:13 +00:00

64 lines
1.8 KiB
YAML

#################################################################################################################
# Create an object store with settings for a test environment. Only a single OSD is required in this example.
# kubectl create -f object-multisite.yaml
#################################################################################################################
apiVersion: v1
kind: Secret
metadata:
name: realm-a-keys
namespace: myceph
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
namespace: new-rook-ceph-namespace
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.
pull:
endpoint: http://10.103.133.16:80
---
apiVersion: ceph.rook.io/v1
kind: CephObjectZoneGroup
metadata:
name: zonegroup-a
namespace: new-rook-ceph-namespace
spec:
realm: realm-a
---
apiVersion: ceph.rook.io/v1
kind: CephObjectZone
metadata:
name: zone-b
namespace: new-rook-ceph-namespace
spec:
zoneGroup: zonegroup-a
metadataPool:
failureDomain: host
replicated:
size: 1
requireSafeReplicaSize: true
dataPool:
failureDomain: host
replicated:
size: 1
requireSafeReplicaSize: true
---
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: zone-b-multisite-store
namespace: new-rook-ceph-namespace
spec:
gateway:
port: 80
# securePort: 443
instances: 1
zone:
name: zone-b