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/filesystem.html |
| 17 | |
| 18 | apiVersion: ceph.rook.io/v1beta1 |
| 19 | kind: Filesystem |
| 20 | metadata: |
| 21 | name: {{ .Values.rookCephfsName }} |
| 22 | namespace: {{ .Values.rookClusterNamespace }} |
| 23 | spec: |
| 24 | metadataPool: |
| 25 | replicated: |
| 26 | size: 2 |
| 27 | dataPools: |
| 28 | - replicated: |
| 29 | size: 2 |
| 30 | metadataServer: |
| 31 | activeCount: 1 |
| 32 | activeStandby: true |
| 33 | |
| 34 | --- |
| 35 | apiVersion: storage.k8s.io/v1 |
| 36 | kind: StorageClass |
| 37 | metadata: |
| 38 | name: {{ .Values.fsStorageClassName }} |
| 39 | provisioner: kubernetes.io/no-provisioner |
| 40 | |
| 41 | --- |
| 42 | apiVersion: v1 |
| 43 | kind: PersistentVolume |
| 44 | metadata: |
| 45 | name: {{ .Values.rookCephfsPersistentVolumeName }} |
| 46 | spec: |
| 47 | storageClassName: {{ .Values.fsStorageClassName }} |
| 48 | capacity: |
| 49 | storage: {{ .Values.rookCephfsPersistentVolumeSize }} |
| 50 | accessModes: |
| 51 | - ReadWriteMany |
| 52 | flexVolume: |
| 53 | driver: ceph.rook.io/rook |
| 54 | fsType: ceph |
| 55 | options: |
| 56 | fsName: {{ .Values.rookCephfsName }} |
| 57 | clusterNamespace: {{ .Values.rookClusterNamespace }} |
| 58 | |