2020-04-09 17:03:45 +02:00
|
|
|
#################################################################################################################
|
|
|
|
|
# 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:
|
2020-11-12 15:19:01 -07:00
|
|
|
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
|
|
|
|
|
# kubectl create -f cluster-external.yaml
|
2020-04-09 17:03:45 +02:00
|
|
|
|
2020-11-11 12:16:20 -07:00
|
|
|
# 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
|
2020-04-09 17:03:45 +02:00
|
|
|
#################################################################################################################
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephCluster
|
|
|
|
|
metadata:
|
|
|
|
|
name: rook-ceph-external
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph-external # namespace:cluster
|
2020-04-09 17:03:45 +02:00
|
|
|
spec:
|
|
|
|
|
external:
|
|
|
|
|
enable: true
|
|
|
|
|
dataDirHostPath: /var/lib/rook
|
|
|
|
|
# providing an image is required, if you want to create other CRs (rgw, mds, nfs)
|
|
|
|
|
cephVersion:
|
2024-03-11 11:06:59 -06:00
|
|
|
image: quay.io/ceph/ceph:v18.2.2 # Should match external cluster version
|