Zack Williams | 618ab86 | 2018-08-03 10:12:54 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
| 19 | apiVersion: ceph.rook.io/v1beta1 |
| 20 | kind: Cluster |
| 21 | metadata: |
| 22 | name: rook-ceph |
| 23 | namespace: {{ .Values.rookClusterNamespace }} |
| 24 | spec: |
| 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 | |
| 40 | apiVersion: ceph.rook.io/v1beta1 |
| 41 | kind: Pool |
| 42 | metadata: |
| 43 | name: {{ .Values.rookPoolName }} |
| 44 | namespace: {{ .Values.rookClusterNamespace }} |
| 45 | spec: |
| 46 | replicated: |
| 47 | size: 2 |
| 48 | |
| 49 | --- |
| 50 | # reference: https://rook.io/docs/rook/v0.8/block.html |
| 51 | |
| 52 | apiVersion: storage.k8s.io/v1 |
| 53 | kind: StorageClass |
| 54 | metadata: |
| 55 | name: {{ .Values.rbdStorageClassName }} |
| 56 | provisioner: ceph.rook.io/block |
| 57 | parameters: |
| 58 | pool: {{ .Values.rookPoolName }} |
| 59 | clusterNamespace: {{ .Values.rookClusterNamespace }} |
| 60 | |