If there are multiple clusters, `dataDirHostPath` must be unique for each cluster. However, it's not documented yet. In addition, `ceph-teardown.md` was also updated because the original document assumes that `dataDirHostPath` is `/var/lib/rook` and the files for a cluster `rook-ceph` is under `/var/lib/rook/rook-ceph`. related issue: https://github.com/rook/rook/issues/14790 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
24 lines
1.1 KiB
YAML
24 lines
1.1 KiB
YAML
#################################################################################################################
|
|
# Define the settings for the rook-ceph-external cluster with common settings for a production cluster.
|
|
|
|
# For example, if Rook is not managing any existing cluster in the 'rook-ceph' namespace do:
|
|
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
|
|
# kubectl create -f cluster-external.yaml
|
|
|
|
# If there is already a cluster managed by Rook in 'rook-ceph' then run:
|
|
# kubectl create -f common-external.yaml -f cluster-external-management.yaml
|
|
#################################################################################################################
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephCluster
|
|
metadata:
|
|
name: rook-ceph-external
|
|
namespace: rook-ceph-external # namespace:cluster
|
|
spec:
|
|
external:
|
|
enable: true
|
|
# If there are multiple clusters, the directory must be unique for each cluster.
|
|
dataDirHostPath: /var/lib/rook
|
|
# providing an image is required, if you want to create other CRs (rgw, mds, nfs)
|
|
cephVersion:
|
|
image: quay.io/ceph/ceph:v18.2.4 # Should match external cluster version
|