blob: 99d939a2940cdbc3cf3352e4f16ed9a7471f5b4e [file] [log] [blame]
Zack Williams618ab862018-08-03 10:12:54 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# reference: https://rook.github.io/docs/rook/v0.8/ceph-cluster-crd.html
17# Modeled after "Storage Configuration: Cluster wide Directories"
18
19apiVersion: ceph.rook.io/v1beta1
20kind: Cluster
21metadata:
22 name: rook-ceph
23 namespace: {{ .Values.rookClusterNamespace }}
24spec:
25 dataDirHostPath: /var/lib/rook
26 serviceAccount: rook-ceph-cluster
27 # cluster level storage configuration and selection
28 storage:
29 useAllNodes: true
30 useAllDevices: false
31 config:
32 databaseSizeMB: "1024" # this value can be removed for environments with normal sized disks (100 GB or larger)
33 journalSizeMB: "1024" # this value can be removed for environments with normal sized disks (20 GB or larger)
34 directories:
35 - path: {{ .Values.cephDataDir | quote }}
36
37---
38# reference: https://rook.io/docs/rook/v0.8/ceph-pool-crd.html
39
40apiVersion: ceph.rook.io/v1beta1
41kind: Pool
42metadata:
43 name: {{ .Values.rookPoolName }}
44 namespace: {{ .Values.rookClusterNamespace }}
45spec:
46 replicated:
47 size: 2
48
49---
50# reference: https://rook.io/docs/rook/v0.8/block.html
51
52apiVersion: storage.k8s.io/v1
53kind: StorageClass
54metadata:
55 name: {{ .Values.rbdStorageClassName }}
56provisioner: ceph.rook.io/block
57parameters:
58 pool: {{ .Values.rookPoolName }}
59 clusterNamespace: {{ .Values.rookClusterNamespace }}
60