2019-03-13 23:15:14 -06:00
|
|
|
#################################################################################################################
|
|
|
|
|
# Create a filesystem with settings for a test environment where only a single OSD is required.
|
|
|
|
|
# kubectl create -f filesystem-test.yaml
|
|
|
|
|
#################################################################################################################
|
|
|
|
|
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephFilesystem
|
|
|
|
|
metadata:
|
|
|
|
|
name: myfs
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
2019-03-13 23:15:14 -06:00
|
|
|
spec:
|
|
|
|
|
metadataPool:
|
|
|
|
|
replicated:
|
|
|
|
|
size: 1
|
2020-02-20 11:37:09 +01:00
|
|
|
requireSafeReplicaSize: false
|
2019-03-13 23:15:14 -06:00
|
|
|
dataPools:
|
2021-12-02 16:34:54 +04:00
|
|
|
- name: replicated
|
|
|
|
|
failureDomain: osd
|
2019-03-13 23:15:14 -06:00
|
|
|
replicated:
|
|
|
|
|
size: 1
|
2020-02-20 11:37:09 +01:00
|
|
|
requireSafeReplicaSize: false
|
2020-10-27 02:20:11 +00:00
|
|
|
preserveFilesystemOnDelete: false
|
2019-03-13 23:15:14 -06:00
|
|
|
metadataServer:
|
|
|
|
|
activeCount: 1
|
2025-11-14 14:40:31 -07:00
|
|
|
activeStandby: false
|
2022-07-05 20:01:11 +05:30
|
|
|
---
|
|
|
|
|
# create default csi subvolume group
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephFilesystemSubVolumeGroup
|
|
|
|
|
metadata:
|
|
|
|
|
name: myfs-csi # lets keep the svg crd name same as `filesystem name + csi` for the default csi svg
|
|
|
|
|
namespace: rook-ceph # namespace:cluster
|
|
|
|
|
spec:
|
|
|
|
|
# The name of the subvolume group. If not set, the default is the name of the subvolumeGroup CR.
|
|
|
|
|
name: csi
|
|
|
|
|
# filesystemName is the metadata name of the CephFilesystem CR where the subvolume group will be created
|
|
|
|
|
filesystemName: myfs
|
2023-12-01 19:37:36 +05:30
|
|
|
# reference https://docs.ceph.com/en/latest/cephfs/fs-volumes/#pinning-subvolumes-and-subvolume-groups
|
|
|
|
|
# only one out of (export, distributed, random) can be set at a time
|
|
|
|
|
# by default pinning is set with value: distributed=1
|
|
|
|
|
# for disabling default values set (distributed=0)
|
|
|
|
|
pinning:
|
2025-11-14 14:40:31 -07:00
|
|
|
distributed: 1 # distributed=<0, 1> (disabled=0)
|
|
|
|
|
# export: # export=<0-256> (disabled=-1)
|
|
|
|
|
# random: # random=[0.0, 1.0](disabled=0.0)
|