Created
March 11, 2020 11:51
-
-
Save alexcpn/663015072fa69a0523ae93bbc5e09c30 to your computer and use it in GitHub Desktop.
ceph with block devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@green--1 ~]# cat cluster-green.yaml | |
################################################################################################################# | |
# Define the settings for the rook-ceph cluster with settings that should only be used in a test environment. | |
# A single filestore OSD will be created in the dataDirHostPath. | |
# For example, to create the cluster: | |
# kubectl create -f common.yaml | |
# kubectl create -f operator.yaml | |
# kubectl create -f cluster-test.yaml | |
################################################################################################################# | |
apiVersion: ceph.rook.io/v1 | |
kind: CephCluster | |
metadata: | |
name: rook-ceph | |
namespace: rook-ceph | |
spec: | |
cephVersion: | |
image: ceph/ceph:v14.2.7 | |
allowUnsupported: true | |
dataDirHostPath: /var/lib/rook | |
skipUpgradeChecks: false | |
continueUpgradeAfterChecksEvenIfNotHealthy: false | |
mon: | |
count: 1 | |
allowMultiplePerNode: true | |
dashboard: | |
enabled: true | |
ssl: true | |
monitoring: | |
enabled: false # requires Prometheus to be pre-installed | |
rulesNamespace: rook-ceph | |
network: | |
hostNetwork: false | |
rbdMirroring: | |
workers: 0 | |
crashCollector: | |
disable: false | |
mgr: | |
modules: | |
# the pg_autoscaler is only available on nautilus or newer. remove this if testing mimic. | |
- name: pg_autoscaler | |
enabled: true | |
storage: | |
useAllNodes: false | |
useAllDevices: false | |
config: | |
databaseSizeMB: "1024" # this value can be removed for environments with normal sized disks (100 GB or larger) | |
journalSizeMB: "1024" # this value can be removed for environments with normal sized disks (20 GB or larger) | |
osdsPerDevice: "1" # this value can be overridden at the node or device level | |
#directories: | |
#- path: /var/lib/rook | |
nodes: | |
- name: "green--2" | |
devices: | |
- name: "vdb" | |
- name: "vdc" | |
#config: | |
# - osdsPerDevice: "1" | |
- name: "green--3" | |
devices: | |
- name: "vdb" | |
# nodes: | |
# - name: "minikube" | |
# directories: | |
# - path: "/data/rook-dir" | |
# devices: | |
# - name: "sdb" | |
# - name: "nvme01" # multiple osds can be created on high performance devices | |
# config: | |
# osdsPerDevice: "5" |
Author
alexcpn
commented
Mar 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment