blob: e53d1d33d44a16d3769f6ac3f5b019a528865ac3 [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/filesystem.html
17
18apiVersion: ceph.rook.io/v1beta1
19kind: Filesystem
20metadata:
21 name: {{ .Values.rookCephfsName }}
22 namespace: {{ .Values.rookClusterNamespace }}
23spec:
24 metadataPool:
25 replicated:
26 size: 2
27 dataPools:
28 - replicated:
29 size: 2
30 metadataServer:
31 activeCount: 1
32 activeStandby: true
33
34---
35apiVersion: storage.k8s.io/v1
36kind: StorageClass
37metadata:
38 name: {{ .Values.fsStorageClassName }}
39provisioner: kubernetes.io/no-provisioner
40
41---
42apiVersion: v1
43kind: PersistentVolume
44metadata:
45 name: {{ .Values.rookCephfsPersistentVolumeName }}
46spec:
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