Files
my-rook-config/cluster/examples/kubernetes/ceph/object-multisite.yaml
T
Blaine Gardner 26c9512962 ceph: add namespace meta-comments to manifests
Add meta-comments to manifests to allow basic templating via `sed`.

Add the following types of meta-comments:
- # namespace:X
  - A basic namespace
  - replace the field with a namespace for X
- # serviceaccount:namespace:X
  - A service account namespace for SCC
  - e.g., "system:serviceaccount:<ns>:rook-ceph-system"
  - Replace the namespace "<ns>" with with a namespace for X
- # provisioner:namespace:X
  - A provisioner identifier with namespace prefix
  - e.g., "<ns>.cephfs.csi.ceph.com"
  - e.g., "<ns>.ceph.rook.io/bucket"
  - Replace the namespace "<ns>" with a namespace for X

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2020-12-09 16:21:31 -07:00

52 lines
1.3 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: 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: 1
requireSafeReplicaSize: true
dataPool:
failureDomain: host
replicated:
size: 1
requireSafeReplicaSize: true
parameters:
compression_mode: none
---
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: multisite-store
namespace: rook-ceph # namespace:cluster
spec:
gateway:
type: s3
port: 80
# securePort: 443
instances: 1
zone:
name: zone-a