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>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
#################################################################################################################
|
|
# Define the settings for the rook-ceph cluster with common settings for a small test cluster.
|
|
# All nodes with available raw devices will be used for the Ceph cluster. One node is sufficient
|
|
# in this example.
|
|
|
|
# For example, to create the cluster:
|
|
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
|
|
# kubectl create -f cluster-test.yaml
|
|
#################################################################################################################
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: rook-config-override
|
|
namespace: rook-ceph # namespace:cluster
|
|
data:
|
|
config: |
|
|
[global]
|
|
osd_pool_default_size = 1
|
|
mon_warn_on_pool_no_redundancy = false
|
|
---
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephCluster
|
|
metadata:
|
|
name: my-cluster
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
dataDirHostPath: /var/lib/rook
|
|
cephVersion:
|
|
image: ceph/ceph:v15
|
|
allowUnsupported: true
|
|
mon:
|
|
count: 1
|
|
allowMultiplePerNode: true
|
|
dashboard:
|
|
enabled: true
|
|
crashCollector:
|
|
disable: true
|
|
storage:
|
|
useAllNodes: true
|
|
useAllDevices: true
|
|
#deviceFilter:
|
|
healthCheck:
|
|
daemonHealth:
|
|
mon:
|
|
interval: 45s
|
|
timeout: 600s
|