2021-01-18 18:57:11 +01:00
|
|
|
#################################################################################################################
|
|
|
|
|
# Create filesystem-mirror daemon
|
|
|
|
|
# kubectl create -f filesystem-mirror.yaml
|
|
|
|
|
#################################################################################################################
|
|
|
|
|
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephFilesystemMirror
|
|
|
|
|
metadata:
|
|
|
|
|
name: my-fs-mirror
|
|
|
|
|
namespace: rook-ceph # namespace:cluster
|
|
|
|
|
spec:
|
|
|
|
|
# The affinity rules to apply to the mds deployment
|
|
|
|
|
placement:
|
|
|
|
|
# nodeAffinity:
|
|
|
|
|
# requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
# nodeSelectorTerms:
|
|
|
|
|
# - matchExpressions:
|
|
|
|
|
# - key: role
|
|
|
|
|
# operator: In
|
|
|
|
|
# values:
|
|
|
|
|
# - cephfs-mirror
|
|
|
|
|
# tolerations:
|
|
|
|
|
# - key: cephfs-mirror-node
|
|
|
|
|
# operator: Exists
|
|
|
|
|
# podAffinity:
|
|
|
|
|
# podAntiAffinity:
|
|
|
|
|
# A key/value list of annotations
|
|
|
|
|
annotations:
|
|
|
|
|
# key: value
|
|
|
|
|
resources:
|
2024-02-07 17:30:44 -07:00
|
|
|
# The requests and limits, for example to allow the cephfs-mirror pod(s) to use half of one CPU core and 1 gigabyte of memory
|
2022-03-11 20:07:05 +02:00
|
|
|
limits:
|
|
|
|
|
memory: "1Gi"
|
|
|
|
|
requests:
|
|
|
|
|
cpu: "500m"
|
|
|
|
|
memory: "1Gi"
|
2021-01-18 18:57:11 +01:00
|
|
|
# priorityClassName: my-priority-class
|