rook-ceph-cluster-values.yaml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. # From https://raw.githubusercontent.com/rook/rook/v1.18.9/deploy/charts/rook-ceph-cluster/values.yaml
  2. # Installs a debugging toolbox deployment
  3. toolbox:
  4. # -- Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md)
  5. enabled: true
  6. # -- Toolbox image, defaults to the image used by the Ceph cluster
  7. monitoring:
  8. # -- Enable Prometheus integration, will also create necessary RBAC rules to allow Operator to create ServiceMonitors.
  9. # Monitoring requires Prometheus to be pre-installed
  10. enabled: true
  11. # -- Whether to create the Prometheus rules for Ceph alerts
  12. createPrometheusRules: true
  13. # -- The namespace in which to create the prometheus rules, if different from the rook cluster namespace.
  14. # If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
  15. # deployed) to set rulesNamespaceOverride for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
  16. # All values below are taken from the CephCluster CRD
  17. # -- Cluster configuration.
  18. # @default -- See [below](#ceph-cluster-spec)
  19. cephClusterSpec:
  20. dashboard:
  21. # serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy)
  22. # urlPrefix: /ceph-dashboard
  23. # serve the dashboard at the given port.
  24. port: 8080
  25. # Serve the dashboard using SSL (if using ingress to expose the dashboard and `ssl: true` you need to set
  26. # the corresponding "backend protocol" annotation(s) for your ingress controller of choice)
  27. ssl: false
  28. # Network configuration, see: https://github.com/rook/rook/blob/master/Documentation/CRDs/Cluster/ceph-cluster-crd.md#network-configuration-settings
  29. network:
  30. # enable host networking
  31. provider: host
  32. # enable log collector, daemons will log on files and rotate
  33. logCollector:
  34. enabled: false
  35. # To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
  36. # The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
  37. # tolerate taints with a key of 'storage-node'.
  38. placement:
  39. all:
  40. # TODO are snapshots easier if mgr/mon/mds run on a compute node?
  41. nodeAffinity:
  42. #requiredDuringSchedulingIgnoredDuringExecution:
  43. # nodeSelectorTerms:
  44. # - matchExpressions:
  45. # - key: storage-node
  46. # operator: In
  47. # values:
  48. # - "true"
  49. preferredDuringSchedulingIgnoredDuringExecution:
  50. - weight: 1
  51. preference:
  52. matchExpressions:
  53. - key: storage-node
  54. operator: DoesNotExist
  55. tolerations:
  56. - key: storage-node
  57. operator: Equal
  58. value: "true"
  59. effect: PreferNoSchedule
  60. resources:
  61. mgr:
  62. requests:
  63. cpu: 0
  64. memory: 0
  65. limits:
  66. cpu: 0
  67. memory: 3Gi
  68. mon:
  69. requests:
  70. cpu: 0
  71. memory: 0
  72. limits:
  73. cpu: 0
  74. memory: 1Gi
  75. osd:
  76. requests:
  77. cpu: 0
  78. memory: 0
  79. limits:
  80. cpu: 0
  81. # Ensure osd_memory_target reflects this
  82. # https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
  83. memory: "4Gi"
  84. prepareosd:
  85. # limits: It is not recommended to set limits on the OSD prepare job
  86. # since it's a one-time burst for memory that must be allowed to
  87. # complete without an OOM kill. Note however that if a k8s
  88. # limitRange guardrail is defined external to Rook, the lack of
  89. # a limit here may result in a sync failure, in which case a
  90. # limit should be added. 1200Mi may suffice for up to 15Ti
  91. # OSDs ; for larger devices 2Gi may be required.
  92. # cf. https://github.com/rook/rook/pull/11103
  93. requests:
  94. cpu: 0
  95. memory: "500Mi"
  96. mgr-sidecar:
  97. limits:
  98. cpu: 0
  99. memory: "100Mi"
  100. requests:
  101. cpu: 0
  102. memory: "40Mi"
  103. crashcollector:
  104. limits:
  105. cpu: 0
  106. memory: "60Mi"
  107. requests:
  108. cpu: 0
  109. memory: "60Mi"
  110. logcollector:
  111. limits:
  112. cpu: 0
  113. memory: "1Gi"
  114. requests:
  115. cpu: 0
  116. memory: "100Mi"
  117. cleanup:
  118. limits:
  119. cpu: 0
  120. memory: "1Gi"
  121. requests:
  122. cpu: 0
  123. memory: "100Mi"
  124. exporter:
  125. limits:
  126. cpu: 0
  127. memory: "128Mi"
  128. requests:
  129. cpu: 0
  130. memory: "50Mi"
  131. # -- A list of CephBlockPool configurations to deploy
  132. # @default -- See [below](#ceph-block-pools)
  133. cephBlockPools:
  134. - name: ceph-blockpool
  135. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  136. spec:
  137. failureDomain: host
  138. replicated:
  139. size: 3
  140. deviceClass: hdd
  141. # Enables collecting RBD per-image IO statistics by enabling dynamic OSD performance counters. Defaults to false.
  142. # For reference: https://docs.ceph.com/docs/latest/mgr/prometheus/#rbd-io-statistics
  143. enableRBDStats: true
  144. storageClass:
  145. enabled: true
  146. name: ceph-block
  147. isDefault: true
  148. reclaimPolicy: Delete
  149. allowVolumeExpansion: true
  150. volumeBindingMode: "Immediate"
  151. mountOptions: []
  152. # see https://kubernetes.io/docs/concepts/storage/storage-classes/#allowed-topologies
  153. allowedTopologies: []
  154. # - matchLabelExpressions:
  155. # - key: rook-ceph-role
  156. # values:
  157. # - storage-node
  158. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Block-Storage-RBD/block-storage.md#provision-storage for available configuration
  159. parameters:
  160. # (optional) mapOptions is a comma-separated list of map options.
  161. # For krbd options refer
  162. # https://docs.ceph.com/docs/latest/man/8/rbd/#kernel-rbd-krbd-options
  163. # For nbd options refer
  164. # https://docs.ceph.com/docs/latest/man/8/rbd-nbd/#options
  165. # mapOptions: lock_on_read,queue_depth=1024
  166. # (optional) unmapOptions is a comma-separated list of unmap options.
  167. # For krbd options refer
  168. # https://docs.ceph.com/docs/latest/man/8/rbd/#kernel-rbd-krbd-options
  169. # For nbd options refer
  170. # https://docs.ceph.com/docs/latest/man/8/rbd-nbd/#options
  171. # unmapOptions: force
  172. # RBD image format. Defaults to "2".
  173. imageFormat: "2"
  174. # RBD image features, equivalent to OR'd bitfield value: 63
  175. # Available for imageFormat: "2". Older releases of CSI RBD
  176. # support only the `layering` feature. The Linux kernel (KRBD) supports the
  177. # full feature complement as of 5.4
  178. imageFeatures: layering
  179. # These secrets contain Ceph admin credentials.
  180. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  181. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  182. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  183. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  184. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  185. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  186. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  187. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  188. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  189. csi.storage.k8s.io/fstype: ext4
  190. - name: ceph-blockpool-ssd
  191. spec:
  192. failureDomain: host
  193. replicated:
  194. size: 3
  195. deviceClass: ssd
  196. enableRBDStats: true
  197. storageClass:
  198. enabled: true
  199. name: ceph-block-ssd
  200. isDefault: false
  201. reclaimPolicy: Delete
  202. allowVolumeExpansion: true
  203. volumeBindingMode: "Immediate"
  204. mountOptions: []
  205. allowedTopologies: []
  206. parameters:
  207. imageFormat: "2"
  208. imageFeatures: layering
  209. # These secrets contain Ceph admin credentials.
  210. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  211. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  212. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  213. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  214. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  215. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  216. csi.storage.k8s.io/fstype: ext4
  217. # -- A list of CephFileSystem configurations to deploy
  218. # @default -- See [below](#ceph-file-systems)
  219. cephFileSystems: []
  220. # -- Settings for the filesystem snapshot class
  221. # @default -- See [CephFS Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#cephfs-snapshots)
  222. cephFileSystemVolumeSnapshotClass:
  223. enabled: true
  224. name: ceph-filesystem
  225. isDefault: true
  226. deletionPolicy: Delete
  227. annotations: {}
  228. labels:
  229. velero.io/csi-volumesnapshot-class: "true"
  230. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#cephfs-snapshots for available configuration
  231. parameters: {}
  232. # -- Settings for the block pool snapshot class
  233. # @default -- See [RBD Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#rbd-snapshots)
  234. cephBlockPoolsVolumeSnapshotClass:
  235. enabled: true
  236. name: ceph-block
  237. isDefault: false
  238. deletionPolicy: Delete
  239. annotations: {}
  240. labels:
  241. velero.io/csi-volumesnapshot-class: "true"
  242. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#rbd-snapshots for available configuration
  243. parameters: {}
  244. # -- A list of CephObjectStore configurations to deploy
  245. # @default -- See [below](#ceph-object-stores)
  246. cephObjectStores: []