2020-03-24 18:44:43 +01:00
|
|
|
#################################################################################################################
|
|
|
|
|
# Create rbd-mirror daemon(s)
|
|
|
|
|
# kubectl create -f rbdmirror.yaml
|
|
|
|
|
#################################################################################################################
|
|
|
|
|
|
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
|
|
|
kind: CephRBDMirror
|
|
|
|
|
metadata:
|
|
|
|
|
name: my-rbd-mirror
|
2020-12-09 13:21:15 -07:00
|
|
|
namespace: rook-ceph # namespace:cluster
|
2020-03-24 18:44:43 +01:00
|
|
|
spec:
|
|
|
|
|
# the number of rbd-mirror daemons to deploy
|
|
|
|
|
count: 1
|
2020-08-25 09:46:18 +02:00
|
|
|
# list of Kubernetes Secrets containing the peer token
|
|
|
|
|
# for more details see: https://docs.ceph.com/docs/master/rbd/rbd-mirroring/#bootstrap-peers
|
|
|
|
|
#peers:
|
2024-02-07 17:30:44 -07:00
|
|
|
# secretNames:
|
|
|
|
|
# - secondary-cluster-peer
|
2021-05-19 20:03:49 +05:30
|
|
|
# The affinity rules to apply to the rbd-mirror deployment
|
2020-03-24 18:44:43 +01:00
|
|
|
placement:
|
|
|
|
|
# nodeAffinity:
|
|
|
|
|
# requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
# nodeSelectorTerms:
|
|
|
|
|
# - matchExpressions:
|
|
|
|
|
# - key: role
|
|
|
|
|
# operator: In
|
|
|
|
|
# values:
|
2021-05-19 20:03:49 +05:30
|
|
|
# - rbd-mirror-node
|
2020-03-24 18:44:43 +01:00
|
|
|
# tolerations:
|
|
|
|
|
# - key: rbd-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 rbd-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"
|
2020-03-24 18:44:43 +01:00
|
|
|
# priorityClassName: my-priority-class
|